diff --git a/frontend/src/ts/elements/account-button.ts b/frontend/src/ts/elements/account-button.ts index 6da91e211..2e06c8cd8 100644 --- a/frontend/src/ts/elements/account-button.ts +++ b/frontend/src/ts/elements/account-button.ts @@ -78,7 +78,6 @@ export async function update( export async function updateXpBar( currentXp: number, addedXp: number, - withDailyBonus: boolean, breakdown: Record ): Promise { skipBreakdown = false; @@ -97,11 +96,7 @@ export async function updateXpBar( } const xpBarPromise = animateXpBar(startingLevel, endingLevel); - const xpBreakdownPromise = animateXpBreakdown( - addedXp, - withDailyBonus, - breakdown - ); + const xpBreakdownPromise = animateXpBreakdown(addedXp, breakdown); await Promise.all([xpBarPromise, xpBreakdownPromise]); await Misc.sleep(2000); @@ -116,12 +111,8 @@ export async function updateXpBar( async function animateXpBreakdown( addedXp: number, - withDailyBonus: boolean, breakdown: Record ): Promise { - // - - console.log("animateXpBreakdown", addedXp, withDailyBonus, breakdown); const delay = 1000; let total = 0; const xpGain = $("#menu .xpBar .xpGain"); @@ -184,10 +175,6 @@ async function animateXpBreakdown( ); } - // $("#menu .xpBar .xpGain").text( - // `+${addedXp} ${withDailyBonus === true ? "daily bonus" : ""}` - // ); - xpGain.text(`+0`); xpBreakdown.append( `` diff --git a/frontend/src/ts/test/test-logic.ts b/frontend/src/ts/test/test-logic.ts index 0f6502679..a8e20a8f7 100644 --- a/frontend/src/ts/test/test-logic.ts +++ b/frontend/src/ts/test/test-logic.ts @@ -1646,7 +1646,6 @@ async function saveResult( AccountButton.updateXpBar( snapxp, response.data.xp, - response.data.dailyXpBonus, response.data.xpBreakdown ); DB.addXp(response.data.xp);