Maybe fixed NaN??

This commit is contained in:
Liam 2022-10-20 15:07:51 +01:00
parent 538714a61e
commit 31376f7cfd

@ -36,7 +36,7 @@ const WebsiteTypes = {
return Math.pow(Math.log10(l / (l - acc)) / Math.log10(l / (l - a)), f);
},
ppFromAcc(acc, stars) {
if (stars === undefined) {
if (stars === undefined || acc === undefined) {
return undefined;
}
const pp = this.curve(acc / 100, stars - 0.5) * (stars + 0.5) * 42;