fix(budget): empty string check
All checks were successful
Build and Push Docker Image / Build-And-Push-Docker-Image (push) Successful in 1m20s

This commit is contained in:
2026-01-04 19:55:32 +01:00
parent 238ec6d55d
commit 5efba04f1b

View File

@@ -107,12 +107,11 @@ func (s ServiceImpl) GetAll(ctx context.Context, user *auth_types.User) ([]Budge
} }
func (s ServiceImpl) isBudgetValid(budget Budget) bool { func (s ServiceImpl) isBudgetValid(budget Budget) bool {
if budget.Description != "" {
err := core.ValidateString(budget.Description, "description") err := core.ValidateString(budget.Description, "description")
if err != nil { if err != nil {
return false return false
} }
} else if budget.Value < 0 { if budget.Value < 0 {
return false return false
} }