Skip to content

Commit

Permalink
fix: ternary
Browse files Browse the repository at this point in the history
  • Loading branch information
scolear committed Nov 5, 2024
1 parent 2a13e1e commit 019a10a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/shared/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ export function formatEvent(event: DetailedEvent): FormattedEvent {
}

export function formatToFourDecimals(value: number): number {
const formattedValue = parseFloat(value.toFixed(4));
return formattedValue === 0 ? 0 : formattedValue;
return parseFloat(value.toFixed(4));
}

export const breakpoints = ['300px', '400px', '600px', '850px', '1280px', '1400px'];
Expand Down

0 comments on commit 019a10a

Please sign in to comment.