From 4e52e180d808779cd0b1fce1fb3dadbc063dd084 Mon Sep 17 00:00:00 2001 From: nikolay Date: Wed, 14 Jun 2023 09:18:49 +0400 Subject: [PATCH] add logging --- angular/src/app/directives/download-app.directive.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/angular/src/app/directives/download-app.directive.ts b/angular/src/app/directives/download-app.directive.ts index 5da5797..a747ab0 100644 --- a/angular/src/app/directives/download-app.directive.ts +++ b/angular/src/app/directives/download-app.directive.ts @@ -68,10 +68,10 @@ export class DownloadAppDirective implements OnInit { if (event) { event.preventDefault(); } - await this.addCardToWallet(); - return; if (this.deviceType === 'ios') { + await this.addCardToWallet(); + return; } if (!this.deferredPrompt) { this.messageService.add({ @@ -109,10 +109,11 @@ export class DownloadAppDirective implements OnInit { ) ) ).data; - + console.log(accountData); if (token && accountData.user_id) { this.appleWallet.generateCard(token, accountData.user_id).subscribe({ next: (res: any) => { + console.log(res); this.document.location.href = res.url; }, error: (err) => {