Skip to content

Commit

Permalink
Merge pull request #496 from brave/remove-tile
Browse files Browse the repository at this point in the history
Remove the correct user requested new tab top site tile
  • Loading branch information
bbondy authored Sep 26, 2018
2 parents 31c5b9c + fbf3f4f commit 4f4fecd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/brave_new_tab_ui/reducers/new_tab_reducer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ export const newTabReducer: Reducer<NewTab.State | undefined> = (state: NewTab.S
case types.NEW_TAB_SITE_IGNORED: {
const topSiteIndex: number = state.topSites.findIndex((site) => site.url === payload.url)
const ignoredTopSites: NewTab.Site[] = state.ignoredTopSites.slice()
ignoredTopSites.splice(0, 1, state.topSites[topSiteIndex])
ignoredTopSites.push(state.topSites[topSiteIndex])
state = {
...state,
ignoredTopSites,
Expand Down

0 comments on commit 4f4fecd

Please sign in to comment.