Skip to content

Commit

Permalink
fix(slippi_store): show days if > 0
Browse files Browse the repository at this point in the history
  • Loading branch information
NikhilNarayana committed Feb 15, 2024
1 parent 1c14fc5 commit fa04723
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/pages/home/sidebar/slippi_store.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 }));
}
};
Expand Down

0 comments on commit fa04723

Please sign in to comment.