Skip to content

Commit ef5c6d1

Browse files
committed
fix: fix unit ledger not showing a total amount when it is zero
Fixes #1431
1 parent 9d57eae commit ef5c6d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/finance/UnitCharges.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export const UnitCharges = ({ unitId }: UnitChargesProps) => {
113113
Storage: {!!storageTotal && formatCoins(storageTotal)}
114114
<Typography variant="h3">Total Charges</Typography>
115115
<Typography variant="subtitle1">To be paid by the unit owner</Typography>
116-
Total: {!!totalCharges && formatCoins(totalCharges)}
116+
Total: {totalCharges !== undefined && formatCoins(totalCharges)}
117117
</Box>
118118
</Container>
119119
);

0 commit comments

Comments
 (0)