From b518fee2bd493045ba38eccb087dd30f7047367b Mon Sep 17 00:00:00 2001 From: ericson Date: Thu, 8 Dec 2022 12:05:48 +0700 Subject: [PATCH] hot fix claim voucher --- src/app/pages/home/home.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/app/pages/home/home.ts b/src/app/pages/home/home.ts index 70002fedfc5..0625cafdddf 100644 --- a/src/app/pages/home/home.ts +++ b/src/app/pages/home/home.ts @@ -583,7 +583,7 @@ export class HomePage { if (!_.isEmpty(wallet)) { let message = 'Loading...'; let claimWalletAddress = ''; - let codeClaimSplit = claimCode ? claimCode.replace('lixi_','') : ''; + let codeClaimSplit = claimCode?.value ? claimCode?.value.replace('lixi_','') : ''; this.loadingProvider.simpleLoader(message); await this.walletProvider .getAddress(wallet, false) @@ -596,9 +596,11 @@ export class HomePage { claimAddress: claimWalletAddress, claimCode: codeClaimSplit } + this.logger.info('Body claim', bodyClaim); // Call provider to claim xpi from lixilotus/api await this.lixiLotusProvider.claimVoucher(bodyClaim) .then(async (data) => { + this.logger.info('Response claim', data); const copayerModal = await this.modalCtrl.create({ component: ClaimVoucherModalComponent, componentProps: { @@ -616,6 +618,7 @@ export class HomePage { }); }) .catch(err => { + this.logger.error('Response claim err', err); const infoSheet = this.actionSheetProvider.createInfoSheet( 'process-fail-voucher' );