From acc7575725083a0196d15bdb06bbe0a0c07478c9 Mon Sep 17 00:00:00 2001 From: Ben Hutchinson <38333275+HutchyBen@users.noreply.github.com> Date: Fri, 25 Oct 2024 17:14:57 +0100 Subject: [PATCH] Add delta to all folder stat showcases (#1198) * Add delta for folders * add comment for condition --- client/src/components/user/UGPTStatShowcase.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/client/src/components/user/UGPTStatShowcase.tsx b/client/src/components/user/UGPTStatShowcase.tsx index 7dc094b55..3f8ba0e1c 100644 --- a/client/src/components/user/UGPTStatShowcase.tsx +++ b/client/src/components/user/UGPTStatShowcase.tsx @@ -297,7 +297,13 @@ function StatDelta({ let delta = null; // don't bother highlighting grade/lamp deltas, since they're kinda meaningless - if (property === "percent" || property === "score" || property === "playcount") { + // unless it's a folder then always show the delta for charts that meet requirement + if ( + property === "percent" || + property === "score" || + property === "playcount" || + mode === "folder" + ) { delta = ` (${v2 > v1 ? `+${d}` : v2 === v1 ? `±${d}` : d})`; }