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