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

View File

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

View File

@ -40,7 +40,7 @@ const WebsiteTypes = {
return undefined;
}
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: {