From 865cbca11602b1a5bb65c6cb8226ce63e53deee9 Mon Sep 17 00:00:00 2001 From: Rodri Sanchez Date: Fri, 6 May 2022 12:04:13 -0300 Subject: [PATCH] Changes requested --- src/components/Board/Board.container.js | 4 ++-- src/components/Settings/Settings.container.js | 6 ++++-- src/cordova-util.js | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/components/Board/Board.container.js b/src/components/Board/Board.container.js index 1970a65ad..eca2e80ca 100644 --- a/src/components/Board/Board.container.js +++ b/src/components/Board/Board.container.js @@ -277,7 +277,7 @@ export class BoardContainer extends Component { // if (isAndroid()) downloadImages(); if (isAndroid()) { - await this.handleAdMobAds(); + this.handleAdMobAds(); } } @@ -368,7 +368,7 @@ export class BoardContainer extends Component { if (bannerAd._created) await bannerAd.hide(); await interstitialAd .load() - .catch(msg => console.log('Error load interstitial Ad', msg)); + .catch(msg => console.error('Error load interstitial Ad', msg)); } async tryRemoteBoard(boardId) { diff --git a/src/components/Settings/Settings.container.js b/src/components/Settings/Settings.container.js index 7457605ed..a746f2e22 100644 --- a/src/components/Settings/Settings.container.js +++ b/src/components/Settings/Settings.container.js @@ -22,10 +22,12 @@ export class SettingsContainer extends Component { const { bannerAd, interstitialAd } = adMobAds; interstitialAd .show() - .catch(msg => console.log('The interstitial advice is not available')); + .catch(msg => + console.error('The interstitial advice is not available') + ); bannerAd .show() - .catch(msg => console.log('The banner advice is not available')); + .catch(msg => console.error('The banner advice is not available')); } } diff --git a/src/cordova-util.js b/src/cordova-util.js index 3cb358f6d..bd262763b 100644 --- a/src/cordova-util.js +++ b/src/cordova-util.js @@ -44,7 +44,7 @@ export const initCordovaPlugins = () => { try { prepareAds(); } catch (err) { - console.log(err.message); + console.error(err.message); } } }