From 252d06c001b06ce07ce17306a8c927f18da3b6d4 Mon Sep 17 00:00:00 2001 From: Thomas <4159106+dtslvr@users.noreply.github.com> Date: Fri, 30 Dec 2022 11:04:48 +0100 Subject: [PATCH] Add prefix --- .../components/admin-overview/admin-overview.component.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/client/src/app/components/admin-overview/admin-overview.component.ts b/apps/client/src/app/components/admin-overview/admin-overview.component.ts index f629b620d..302fa959c 100644 --- a/apps/client/src/app/components/admin-overview/admin-overview.component.ts +++ b/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 }); }