Fix pp showing for unranked maps
This commit is contained in:
parent
d5b367d272
commit
b633e0b59b
@ -31,6 +31,9 @@ export default class Utils {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static calculatePP(stars, acc, type) {
|
static calculatePP(stars, acc, type) {
|
||||||
|
if (stars <= 0) {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
if (type === "BeatLeader") {
|
if (type === "BeatLeader") {
|
||||||
return getBeatLeaderPP(acc, stars);
|
return getBeatLeaderPP(acc, stars);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user