Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeroen-Veltmans committed Feb 22, 2024
1 parent 8fac848 commit de524c2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/ui/components/ads/AdSkipButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,8 @@ export class AdSkipButton extends PureComponent<AdSkipButtonProps, AdSkipButtonS
render() {
const { currentAd, timeToSkip } = this.state;
const { style } = this.props;
if (timeToSkip === undefined || isNaN(timeToSkip)) {
return <></>;
}

if (currentAd && currentAd.integration === 'google-ima') {
if (timeToSkip === undefined || isNaN(timeToSkip) || (currentAd && currentAd.integration === 'google-ima')) {
return <></>;
}

Expand Down

0 comments on commit de524c2

Please sign in to comment.