yay more pp fix

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

View File

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