add logging

This commit is contained in:
nikolay 2023-06-14 09:18:49 +04:00
parent 30854f4cb9
commit 4e52e180d8

View File

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