correcting number after animation is done

This commit is contained in:
Miodec 2022-08-02 01:05:42 +02:00
parent da4aac9a15
commit a266b577aa

View file

@ -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)