Skip to content

Commit

Permalink
NTP: Do not auto opt-in sponsored images after re-enabling backgrounds
Browse files Browse the repository at this point in the history
  • Loading branch information
cezaraugusto committed Mar 6, 2020
1 parent 10a20fc commit dd3bad0
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions components/brave_new_tab_ui/containers/newTab/settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,6 @@ export default class Settings extends React.PureComponent<Props, {}> {

toggleShowBackgroundImage = () => {
this.props.toggleShowBackgroundImage()
// Re opt-in to branded wallpaper if re-enabling background image
if (!this.props.showBackgroundImage && !this.props.brandedWallpaperOptIn) {
this.props.toggleBrandedWallpaperOptIn()
}
}

render () {
Expand Down

0 comments on commit dd3bad0

Please sign in to comment.