mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
Show accurate XP gain in notification on level up (#10590)
This commit is contained in:
committed by
Matteo Pagliazzi
parent
45ca090105
commit
1f7dd421d4
@@ -47,6 +47,6 @@ export function round (number, nDigits) {
|
||||
}
|
||||
|
||||
export function getXPMessage (val) {
|
||||
if (val < -50) return; // don't show when they level up (resetting their exp)
|
||||
if (val < -50) return; // don't show when they multi-level up (resetting their exp)
|
||||
return `${getSign(val)} ${round(val)}`;
|
||||
}
|
||||
Reference in New Issue
Block a user