Update statsService.ts
This commit is contained in:
parent
14acff99a9
commit
9be9529e8b
@ -311,7 +311,7 @@ export const updateStats = async (playerStats: TStatsDatabaseDocument, payload:
|
|||||||
case "OlliesCrashCourseScore":
|
case "OlliesCrashCourseScore":
|
||||||
case "DojoObstacleScore":
|
case "DojoObstacleScore":
|
||||||
playerStats[category] ??= 0;
|
playerStats[category] ??= 0;
|
||||||
playerStats[category] = data;
|
if (data > playerStats[category]) playerStats[category] = data;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user