Skip to content

Remaining budget never goes negative, breaking UI logic #74

@arin-gupta06

Description

@arin-gupta06

📉 Remaining budget never goes negative, breaking UI logic

Description

The backend prevents negative values for remaining budget, but the UI expects them.

Issue

Backend:

remaining = max(0, monthly_budget - total_spent)

Frontend:

  • Checks "remaining < 0" to show “over budget”

Impact

  • UI condition for “over budget” never triggers
  • Users are not informed when they exceed budget

Suggested Fix

  • Remove "max(0, ...)", OR
  • Update UI logic to match backend behavior

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions