add logging
This commit is contained in:
parent
30854f4cb9
commit
4e52e180d8
@ -68,10 +68,10 @@ export class DownloadAppDirective implements OnInit {
|
|||||||
if (event) {
|
if (event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
}
|
}
|
||||||
await this.addCardToWallet();
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (this.deviceType === 'ios') {
|
if (this.deviceType === 'ios') {
|
||||||
|
await this.addCardToWallet();
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
if (!this.deferredPrompt) {
|
if (!this.deferredPrompt) {
|
||||||
this.messageService.add({
|
this.messageService.add({
|
||||||
@ -109,10 +109,11 @@ export class DownloadAppDirective implements OnInit {
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
).data;
|
).data;
|
||||||
|
console.log(accountData);
|
||||||
if (token && accountData.user_id) {
|
if (token && accountData.user_id) {
|
||||||
this.appleWallet.generateCard(token, accountData.user_id).subscribe({
|
this.appleWallet.generateCard(token, accountData.user_id).subscribe({
|
||||||
next: (res: any) => {
|
next: (res: any) => {
|
||||||
|
console.log(res);
|
||||||
this.document.location.href = res.url;
|
this.document.location.href = res.url;
|
||||||
},
|
},
|
||||||
error: (err) => {
|
error: (err) => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user