Skip to content

Commit

Permalink
suggestion
Browse files Browse the repository at this point in the history
Co-authored-by: Joel Jeremy Marquez <joeljeremy.marquez@gmail.com>
  • Loading branch information
youngcw and joel-jeremy authored Nov 8, 2023
1 parent 61205b3 commit 1e86760
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/desktop-client/src/components/budget/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ export function makeAmountStyle(
goalValue?: number,
budgetedValue?: number,
) {
let goalStatus = goalValue != null ? budgetedValue >= goalValue : false;
if (value < 0) {
return { color: theme.errorText };
}
Expand All @@ -53,7 +52,7 @@ export function makeAmountStyle(
return greyed;
}
} else {
if (!goalStatus) {
if (budgetedValue < goalValue) {
return { color: theme.warningText };
}
return { color: theme.noticeText };
Expand Down

0 comments on commit 1e86760

Please sign in to comment.