mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-26 07:44:01 +08:00
correcting number after animation is done
This commit is contained in:
parent
da4aac9a15
commit
a266b577aa
1 changed files with 2 additions and 0 deletions
|
@ -1,3 +1,4 @@
|
|||
import { getSnapshot } from "../db";
|
||||
import { Auth } from "../firebase";
|
||||
import * as Misc from "../utils/misc";
|
||||
import { getAll } from "./theme-colors";
|
||||
|
@ -164,6 +165,7 @@ export async function updateXpBar(
|
|||
);
|
||||
}
|
||||
setTimeout(() => {
|
||||
$("#menu .level").text(Math.floor(Misc.getLevel(getSnapshot().xp)));
|
||||
$("#menu .xpBar")
|
||||
.stop(true, true)
|
||||
.css("opacity", 1)
|
||||
|
|
Loading…
Reference in a new issue