diff --git a/frontend/src/html/pages/account.html b/frontend/src/html/pages/account.html
index b1d7a856c..b51c2723a 100644
--- a/frontend/src/html/pages/account.html
+++ b/frontend/src/html/pages/account.html
@@ -80,6 +80,10 @@
+
All-Time English Leaderboards
diff --git a/frontend/src/ts/pages/account.ts b/frontend/src/ts/pages/account.ts
index f57c3ade6..b3076facb 100644
--- a/frontend/src/ts/pages/account.ts
+++ b/frontend/src/ts/pages/account.ts
@@ -36,7 +36,7 @@ import Ape from "../ape";
import { AccountChart } from "@monkeytype/schemas/configs";
import { SortedTableWithLimit } from "../utils/sorted-table";
import { qs, qsa, qsr, onWindowLoad, ElementWithUtils } from "../utils/dom";
-
+import { mountAccountPage } from "../test/live-states";
let filterDebug = false;
//toggle filterdebug
export function toggleFilterDebug(): void {
@@ -51,6 +51,8 @@ let visibleTableLines = 0;
let testActivityEl: HTMLElement | null;
let historyTable: SortedTableWithLimit>;
+let accountDispose: () => void;
+
function loadMoreLines(lineIndex?: number): void {
if (filteredResults === undefined || filteredResults.length === 0) return;
let newVisibleLines;
@@ -564,7 +566,7 @@ async function fillContent(): Promise {
histogramChartData.push(0);
}
}
- (histogramChartData[bucket] as number)++;
+ (histogramChartData[bucket] as number) += 1;
let tt = 0;
if (
@@ -1243,10 +1245,12 @@ export const page = new Page({
afterHide: async (): Promise => {
reset();
Skeleton.remove("pageAccount");
+ accountDispose?.();
},
beforeShow: async (): Promise => {
Skeleton.append("pageAccount", "main");
const snapshot = DB.getSnapshot();
+ accountDispose = mountAccountPage();
await ResultFilters.appendDropdowns(update);
ResultFilters.updateActive();
await Misc.sleep(0);
diff --git a/frontend/src/ts/test/live-states.tsx b/frontend/src/ts/test/live-states.tsx
index 24b836bd4..4290b1547 100644
--- a/frontend/src/ts/test/live-states.tsx
+++ b/frontend/src/ts/test/live-states.tsx
@@ -15,3 +15,13 @@ export function mountLiveCounters(): void {
qsr("#liveSpeedCounter").native,
);
}
+
+export function mountAccountPage(): () => void {
+ const speedStyleDispose = render(
+ () => ,
+ qsr("#accountSpeedStyle").native,
+ );
+ return () => {
+ speedStyleDispose();
+ };
+}