Skip to content

Commit

Permalink
Changes requested
Browse files Browse the repository at this point in the history
  • Loading branch information
RodriSanchez1 committed May 6, 2022
1 parent 2ab360f commit 865cbca
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/components/Board/Board.container.js
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ export class BoardContainer extends Component {

// if (isAndroid()) downloadImages();
if (isAndroid()) {
await this.handleAdMobAds();
this.handleAdMobAds();
}
}

Expand Down Expand Up @@ -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) {
Expand Down
6 changes: 4 additions & 2 deletions src/components/Settings/Settings.container.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/cordova-util.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const initCordovaPlugins = () => {
try {
prepareAds();
} catch (err) {
console.log(err.message);
console.error(err.message);
}
}
}
Expand Down

0 comments on commit 865cbca

Please sign in to comment.