diff --git a/pkg/cart/mutation_add_voucher.go b/pkg/cart/mutation_add_voucher.go index 85bffe0..88743cc 100644 --- a/pkg/cart/mutation_add_voucher.go +++ b/pkg/cart/mutation_add_voucher.go @@ -54,10 +54,12 @@ func AddVoucher(g *CartGrain, m *messages.AddVoucher) error { g.lastVoucherId++ g.Vouchers = append(g.Vouchers, &Voucher{ - Id: g.lastVoucherId, - Code: m.Code, - Rules: m.VoucherRules, - Value: m.Value, + Id: g.lastVoucherId, + Applied: false, + Description: m.Description, + Code: m.Code, + Rules: m.VoucherRules, + Value: m.Value, }) g.UpdateTotals() return nil