update totals on remove

This commit is contained in:
matst80
2025-10-20 09:36:30 +02:00
parent 4a54661f24
commit df0cd58dcd

View File

@@ -45,6 +45,7 @@ func ChangeQuantity(g *CartGrain, m *messages.ChangeQuantity) error {
if m.Quantity <= 0 {
// Remove the item
g.Items = append(g.Items[:foundIndex], g.Items[foundIndex+1:]...)
g.UpdateTotals()
return nil
}