Skip to content

Commit

Permalink
style: allow for neg values (#3006)
Browse files Browse the repository at this point in the history
  • Loading branch information
fpigeonjr authored Oct 31, 2024
1 parent 70e686b commit 7977f32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/UI/Cards/BudgetCard/BudgetCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import Tag from "../../Tag";
*/
const BudgetCard = ({ title, totalSpending, totalFunding }) => {
const overBudget = totalSpending > totalFunding;
const remainingBudget = overBudget ? 0 : totalFunding - totalSpending;
const remainingBudget = totalFunding - totalSpending;
const graphData = [
{
id: 1,
Expand Down

0 comments on commit 7977f32

Please sign in to comment.