Compare commits
2 Commits
86f97f2888
...
99c9f611e7
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
99c9f611e7 | ||
|
|
df0cd58dcd |
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user