Skip to content

Commit 33b2506

Browse files
committed
project page float fix
1 parent b475c6a commit 33b2506

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/frontend/src/components/WarningBanner.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ interface WarningBannerProps {
66
}
77

88
const WarningBanner: React.FC<WarningBannerProps> = ({ amount }) => {
9-
const formattedMessage = `Spending is $${amount} over budget!`;
9+
const formattedMessage = `Spending is $${Math.round(amount * 100) / 100} over budget!`;
1010

1111
return (
1212
<Box

0 commit comments

Comments
 (0)