Skip to content

Commit

Permalink
fix: No longer display zero with other numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
nesadrian committed Sep 4, 2024
1 parent 36b518b commit 22907dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/unitDefinitions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export const formatTotalDuration = (
const reversedTimeDurations = timeDurations.slice().reverse();

reversedTimeDurations?.forEach((d) => {
if (typeof d.duration === "number") {
if (d.duration) {
const cUnit = getShortDisplayName(d.displayName);
sumDuration += `${d.duration}${cUnit} `;
}
Expand Down

0 comments on commit 22907dc

Please sign in to comment.