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