diff --git a/src/components/modals/main/settings/sections/background/Background.jsx b/src/components/modals/main/settings/sections/background/Background.jsx index 14273ce0..6659a4fd 100644 --- a/src/components/modals/main/settings/sections/background/Background.jsx +++ b/src/components/modals/main/settings/sections/background/Background.jsx @@ -62,14 +62,16 @@ export default class BackgroundSettings extends PureComponent { } render() { - const { getMessage } = this; - const interval = ( - {interval} ; + backgroundSettings = ; break; case 'colour': backgroundSettings = ; @@ -431,6 +432,10 @@ export default class BackgroundSettings extends PureComponent { + {/* // todo: ideally refactor all of this file, but we need interval to appear on marketplace too */} + {(this.state.backgroundType === 'api' || + this.state.backgroundType === 'custom' || + this.state.marketplaceEnabled) ? interval : null} {backgroundSettings} ) : null} diff --git a/src/components/modals/main/settings/sections/background/Custom.jsx b/src/components/modals/main/settings/sections/background/Custom.jsx index 59863fc6..82aac278 100644 --- a/src/components/modals/main/settings/sections/background/Custom.jsx +++ b/src/components/modals/main/settings/sections/background/Custom.jsx @@ -175,7 +175,6 @@ export default class CustomSettings extends PureComponent { render() { return ( <> - {this.props.interval}