add logging
This commit is contained in:
parent
30854f4cb9
commit
4e52e180d8
@ -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) => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user