Don't show never show when already hidden

This commit is contained in:
Ajay
2022-04-21 21:33:22 -04:00
parent c773b4ecd1
commit f2172bb2ad

View File

@@ -121,9 +121,9 @@ class SkipNoticeComponent extends React.Component<SkipNoticeProps, SkipNoticeSta
countdownTime: Config.config.skipNoticeDuration, countdownTime: Config.config.skipNoticeDuration,
countdownText: null, countdownText: null,
skipButtonText: this.props.startReskip skipButtonText: this.props.startReskip
? this.getReskipText() : this.getUnskipText(), ? this.getReskipText() : this.getUnskipText(),
skipButtonCallback: this.props.startReskip skipButtonCallback: this.props.startReskip
? (index) => this.reskip(index) : (index) => this.unskip(index), ? (index) => this.reskip(index) : (index) => this.unskip(index),
showSkipButton: true, showSkipButton: true,
@@ -252,8 +252,8 @@ class SkipNoticeComponent extends React.Component<SkipNoticeProps, SkipNoticeSta
{/* Unskip/Skip Button */} {/* Unskip/Skip Button */}
{!this.props.smaller ? this.getSkipButton() : null} {!this.props.smaller ? this.getSkipButton() : null}
{/* Never show button if autoSkip is enabled */} {/* Never show button */}
{!this.autoSkip ? "" : {!this.autoSkip || this.props.startReskip ? "" :
<td className="sponsorSkipNoticeRightSection" <td className="sponsorSkipNoticeRightSection"
key={1}> key={1}>
<button className="sponsorSkipObject sponsorSkipNoticeButton sponsorSkipNoticeRightButton" <button className="sponsorSkipObject sponsorSkipNoticeButton sponsorSkipNoticeRightButton"