fuck JS
This commit is contained in:
parent
31376f7cfd
commit
a05915672b
@ -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
|
||||
|
@ -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: {
|
||||
|
Reference in New Issue
Block a user