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) => {