mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-25 23:35:02 +08:00
passing xp breakdown to the update xp bar function
This commit is contained in:
parent
d3f4e474fc
commit
32550a54e3
1 changed files with 4 additions and 2 deletions
|
@ -1258,7 +1258,8 @@ export async function retrySavingResult(): Promise<void> {
|
|||
AccountButton.updateXpBar(
|
||||
snapxp,
|
||||
response.data.xp,
|
||||
response.data.dailyXpBonus
|
||||
response.data.dailyXpBonus,
|
||||
response.data.xpBreakdown
|
||||
);
|
||||
DB.addXp(response.data.xp);
|
||||
}
|
||||
|
@ -1668,7 +1669,8 @@ export async function finish(difficultyFailed = false): Promise<void> {
|
|||
AccountButton.updateXpBar(
|
||||
snapxp,
|
||||
response.data.xp,
|
||||
response.data.dailyXpBonus
|
||||
response.data.dailyXpBonus,
|
||||
response.data.xpBreakdown
|
||||
);
|
||||
DB.addXp(response.data.xp);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue