Skip to content

Commit

Permalink
more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnathanWhite committed Sep 1, 2021
1 parent 12f44d7 commit f45d85a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/pages/exchange-crypto/exchange-crypto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,12 +182,16 @@ export class ExchangeCryptoPage {

this.getExchangesCurrencies();
this.onPauseSubscription = this.platform.pause.subscribe(() => {
this.logger.debug('Swap - onPauseSubscription called');
if (this.timeout) {
this.logger.debug('Swap - onPauseSubscription clearing timeout');
clearTimeout(this.timeout);
}
});
this.onResumeSubscription = this.platform.resume.subscribe(() => {
this.logger.debug('Swap - onResumeSubscription called');
if (this.exchangeToUse == '1inch' && !this.fromWalletAllowanceOk) {
this.logger.debug('Swap - onResumeSubscription checking Confirmation');
this.checkConfirmation(1000);
}
});
Expand Down

0 comments on commit f45d85a

Please sign in to comment.