Skip to content

Commit

Permalink
Add delta to all folder stat showcases (#1198)
Browse files Browse the repository at this point in the history
* Add delta for folders

* add comment for condition
  • Loading branch information
HutchyBen authored Oct 25, 2024
1 parent 3894842 commit acc7575
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion client/src/components/user/UGPTStatShowcase.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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})`;
}

Expand Down

0 comments on commit acc7575

Please sign in to comment.