From 7b7c4ae6b9f0e2e3e4c4fe7fd77ca8325c03d9ec Mon Sep 17 00:00:00 2001 From: Miodec Date: Mon, 13 May 2024 10:15:45 +0200 Subject: [PATCH] impr(account): replace "custom custom" with just "custom" in the result history table --- frontend/src/ts/pages/account.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/ts/pages/account.ts b/frontend/src/ts/pages/account.ts index 0f5cf42f0..00c12659f 100644 --- a/frontend/src/ts/pages/account.ts +++ b/frontend/src/ts/pages/account.ts @@ -144,6 +144,8 @@ function loadMoreLines(lineIndex?: number): void { const charStats = result.charStats.join("/"); + const mode2 = result.mode === "custom" ? "" : result.mode2; + const date = new Date(result.timestamp); $(".pageAccount .history table tbody").append(` @@ -155,7 +157,7 @@ function loadMoreLines(lineIndex?: number): void { showDecimalPlaces: true, })} ${charStats} - ${result.mode} ${result.mode2} + ${result.mode} ${mode2} ${icons} ${resultTagsButton} ${format(date, "dd MMM yyyy")}