This commit is contained in:
asyncnomi 2023-01-17 13:16:58 +01:00
parent a7431e4250
commit 05750ec31a

View file

@ -11,11 +11,10 @@ for (var uid in PrankData) {
if (PrankData[uid].state == "Done") {
nbPrank ++;
nbCrepe += parseInt(PrankData[uid].amount)
if (userPrank[PrankData[uid].creator]) {
userPrank[PrankData[uid].creator] += nbPrank;
} else {
userPrank[PrankData[uid].creator] = nbPrank;
if (!userPrank[PrankData[uid].creator]) {
userPrank[PrankData[uid].creator] = 0;
}
userPrank[PrankData[uid].creator] += parseInt(PrankData[uid].amount);
}
}
}