diff --git a/packages/desktop-client/src/components/budget/BalanceWithCarryover.tsx b/packages/desktop-client/src/components/budget/BalanceWithCarryover.tsx index aab6fc2329c..fe7195f153f 100644 --- a/packages/desktop-client/src/components/budget/BalanceWithCarryover.tsx +++ b/packages/desktop-client/src/components/budget/BalanceWithCarryover.tsx @@ -54,7 +54,7 @@ export default function BalanceWithCarryover({ )} diff --git a/packages/desktop-client/src/components/budget/util.js b/packages/desktop-client/src/components/budget/util.js index 6a1c52b6817..0837acf46ff 100644 --- a/packages/desktop-client/src/components/budget/util.js +++ b/packages/desktop-client/src/components/budget/util.js @@ -42,18 +42,16 @@ export function makeAmountStyleGoal(value, goal) { } if (goal) { - if ( goal>=0 ) { - if(value= 0) { + if (value < goal) { + return { color: theme.warningText }; //TODO: Find the real theme value } - return {color: theme.noticeText} - + return { color: theme.noticeText }; } if (value < 0) { return { color: theme.errorText }; } } - } export function makeAmountFullStyle(value) { diff --git a/packages/desktop-client/src/components/spreadsheet/CellValue.tsx b/packages/desktop-client/src/components/spreadsheet/CellValue.tsx index 63cee3bb134..8b83ad57856 100644 --- a/packages/desktop-client/src/components/spreadsheet/CellValue.tsx +++ b/packages/desktop-client/src/components/spreadsheet/CellValue.tsx @@ -19,7 +19,7 @@ type CellValueProps = { type?: string; formatter?: (value) => ReactNode; style?: CSSProperties; - getStyle?: (value,modifier?) => CSSProperties; + getStyle?: (value, modifier?) => CSSProperties; privacyFilter?: ConditionalPrivacyFilterProps['privacyFilter']; ['data-testid']?: string; };