This commit is contained in:
Liam 2022-10-20 15:20:35 +01:00
parent 31376f7cfd
commit a05915672b
2 changed files with 2 additions and 2 deletions

@ -20,7 +20,7 @@ export default class ScoreStats extends Component {
render() { render() {
const data = this.props.data; const data = this.props.data;
const currentPP = Utils.calculatePP( let currentPP = Utils.calculatePP(
data.mapStarCount, data.mapStarCount,
data.percentage.replace("%", ""), data.percentage.replace("%", ""),
data.websiteType data.websiteType

@ -40,7 +40,7 @@ const WebsiteTypes = {
return undefined; return undefined;
} }
const pp = this.curve(acc / 100, stars - 0.5) * (stars + 0.5) * 42; const pp = this.curve(acc / 100, stars - 0.5) * (stars + 0.5) * 42;
return pp == NaN ? undefined : pp; return Number.isNaN(pp) ? undefined : pp;
}, },
}, },
Test: { Test: {