yay more pp fix

This commit is contained in:
Liam 2022-10-20 18:39:44 +01:00
parent 14602dc11a
commit 68a81a24de

@ -26,10 +26,11 @@ export default class ScoreStats extends Component {
data.percentage.replace("%", ""), data.percentage.replace("%", ""),
data.websiteType data.websiteType
); );
console.log(this.lastKnownPP);
if (this.lastKnownPP === undefined) { if (this.lastKnownPP === undefined) {
this.lastKnownPP = currentPP; this.lastKnownPP = currentPP;
} }
if (currentPP < this.lastKnownPP || currentPP === undefined) { if (currentPP === undefined) {
currentPP = this.lastKnownPP; currentPP = this.lastKnownPP;
} }
this.lastKnownPP = currentPP; this.lastKnownPP = currentPP;