Browse Source

Add prefix

pull/1562/head
Thomas 3 years ago
parent
commit
252d06c001
  1. 5
      apps/client/src/app/components/admin-overview/admin-overview.component.ts

5
apps/client/src/app/components/admin-overview/admin-overview.component.ts

@ -97,7 +97,10 @@ export class AdminOverviewComponent implements OnDestroy, OnInit {
public onAddCoupon() {
const coupons = [
...this.coupons,
{ code: this.generateCouponCode(16), duration: this.couponDuration }
{
code: `GF${this.generateCouponCode(14)}`,
duration: this.couponDuration
}
];
this.putAdminSetting({ key: PROPERTY_COUPONS, value: coupons });
}

Loading…
Cancel
Save