Skip to content
This repository has been archived by the owner on Jan 6, 2025. It is now read-only.

Commit

Permalink
fix: Display Units with value of 0 as 0
Browse files Browse the repository at this point in the history
binarybaron committed Jun 19, 2024
1 parent bbe0724 commit 2668da2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/components/other/Units.tsx
Original file line number Diff line number Diff line change
@@ -25,7 +25,7 @@ export function AmountWithUnit({
}
>
<span>
{amount ? Number.parseFloat(amount.toFixed(fixedPrecision)) : '?'}{' '}
{amount != null ? Number.parseFloat(amount.toFixed(fixedPrecision)) : '?'}{' '}
{unit}
</span>
</Tooltip>

0 comments on commit 2668da2

Please sign in to comment.