chore(update): handles nil values properly now, it worked first try perfectly for everything but just having the desc param

This commit is contained in:
DarthMooMancer committed 2026-11-13 13:39:01 -05:00
1 parent 72a95c96f3
commit 988da3a978
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -105,7 +105,7 @@ func update(fileName string, idx int, desc string, amount float64) error {
expense.Desc = desc
}
if amount != -1 {
if amount != 0 {
expense.Amount = amount
}
exp[c] = expense