From fa047233fffdcff5596e1027929c95cc01a3a8cb Mon Sep 17 00:00:00 2001 From: Nikhil Narayana Date: Wed, 14 Feb 2024 23:10:53 -0800 Subject: [PATCH] fix(slippi_store): show days if > 0 --- src/renderer/pages/home/sidebar/slippi_store.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/pages/home/sidebar/slippi_store.tsx b/src/renderer/pages/home/sidebar/slippi_store.tsx index dc93d54eb..6117937c5 100644 --- a/src/renderer/pages/home/sidebar/slippi_store.tsx +++ b/src/renderer/pages/home/sidebar/slippi_store.tsx @@ -88,7 +88,7 @@ export const SlippiStore = React.memo(function SlippiStore() { window.clearInterval(interval); } else { const format: (keyof Duration)[] = - (duration.hours ?? 0) < 1 ? ["minutes", "seconds"] : ["days", "hours", "minutes"]; + (duration.hours ?? 0) < 1 && (duration.days ?? 0) < 1 ? ["minutes", "seconds"] : ["days", "hours", "minutes"]; setCountdown(formatDuration(duration, { format, locale: shortEnLocale })); } };