From 9e7394e84845d3a9cf2ff51c1a3fc818fab34d16 Mon Sep 17 00:00:00 2001 From: nikolay Date: Mon, 26 Jun 2023 10:40:10 +0400 Subject: [PATCH] =?UTF-8?q?dev=20#14384=20=D0=9F=D1=80=D0=B0=D0=B2=D0=BA?= =?UTF-8?q?=D0=B0=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BE=D0=BA=20=D0=BE=D1=82?= =?UTF-8?q?=D0=BE=D0=B1=D1=80=D0=B0=D0=B6=D0=B5=D0=BD=D0=B8=D1=8F=20WPA=20?= =?UTF-8?q?=D0=9A=D0=BE=D1=84=D0=B5=D0=9B=D0=B0=D0=B9=D0=BA:=20fix=20last?= =?UTF-8?q?=20purchase?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../default-option/pages/guest-card/guest-card.component.ts | 2 -- angular/src/app/services/auth.service.ts | 4 +++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/angular/src/app/presentation-options/default-option/pages/guest-card/guest-card.component.ts b/angular/src/app/presentation-options/default-option/pages/guest-card/guest-card.component.ts index 54983cc..07e4516 100644 --- a/angular/src/app/presentation-options/default-option/pages/guest-card/guest-card.component.ts +++ b/angular/src/app/presentation-options/default-option/pages/guest-card/guest-card.component.ts @@ -35,8 +35,6 @@ export class GuestCardComponent implements OnInit { this.negativeBalance = !Array.isArray(this.authService.userInfo?.walletBalances); this.showBack = getTypeDevice() === DeviceType.android; - this.authService.getLastPurchase(); - this.requestPermission(); } diff --git a/angular/src/app/services/auth.service.ts b/angular/src/app/services/auth.service.ts index e77e0a8..e1b434a 100644 --- a/angular/src/app/services/auth.service.ts +++ b/angular/src/app/services/auth.service.ts @@ -87,8 +87,10 @@ export class AuthService { }); } else if (value && value.customer_info) { this.userInfo = value.customer_info; - + this.cookiesService.setCookie('phone-number', this.userInfo!.phone?.slice(2)); + + this.getLastPurchase(); } }, error: (e) => {