Skip to content

Commit

Permalink
fix: Save completely allocated budget (maybe-finance#1811)
Browse files Browse the repository at this point in the history
Signed-off-by: Marvin M <[email protected]>
  • Loading branch information
M123-dev authored Feb 5, 2025
1 parent e3ef1dd commit df5f4c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/budget.rb
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def available_to_allocate
end

def allocations_valid?
initialized? && available_to_allocate.positive? && allocated_spending > 0
initialized? && available_to_allocate >= 0 && allocated_spending > 0
end

# =============================================================================
Expand Down

0 comments on commit df5f4c8

Please sign in to comment.