diff --git a/packages/desktop-client/src/components/budget/MobileBudgetTable.js b/packages/desktop-client/src/components/budget/MobileBudgetTable.js index f16f3cafe3a..32ae6200ef6 100644 --- a/packages/desktop-client/src/components/budget/MobileBudgetTable.js +++ b/packages/desktop-client/src/components/budget/MobileBudgetTable.js @@ -38,7 +38,6 @@ import { ListItem, ROW_HEIGHT } from './MobileTable'; function ToBudget({ toBudget, onClick }) { let amount = useSheetValue(toBudget); - let format = useFormat(); return ( ); } function Saved({ projected }) { - let budgetedSaved = useSheetValue(reportBudget.totalBudgetedSaved) || 0; - let totalSaved = useSheetValue(reportBudget.totalSaved) || 0; - let format = useFormat(); - let saved = projected ? budgetedSaved : totalSaved; + let binding = projected + ? reportBudget.totalBudgetedSaved + : reportBudget.totalSaved; + + let saved = useSheetValue(binding) || 0; let isNegative = saved < 0; return ( @@ -80,15 +80,15 @@ function Saved({ projected }) { /> )} - - {format(saved, 'financial')} - + /> ); } @@ -107,7 +107,6 @@ function BudgetCell(props) { } = props; let sheetValue = useSheetValue(binding); - let format = useFormat(); function updateBudgetAmount(amount) { onBudgetAction?.(month, 'budget-amount', { @@ -140,12 +139,12 @@ function BudgetCell(props) { height: ROW_HEIGHT - 4, }} > - - {format(sheetValue || 0, 'financial')} - + /> )}