From 23d813cdcd4b06f37d0d51ff40c4154ac0aa7832 Mon Sep 17 00:00:00 2001 From: NejcZdovc Date: Wed, 22 Mar 2017 15:41:56 +0100 Subject: [PATCH] Fixes automated test failures on urlBarSuggestions Resolves #7837 Auditors: @diracdeltas @cezaraugusto Test Plan: - npm run test -- --grep="urlBarSuggestions" --- app/renderer/reducers/urlBarSuggestionsReducer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/renderer/reducers/urlBarSuggestionsReducer.js b/app/renderer/reducers/urlBarSuggestionsReducer.js index 753793370dc..2abbf297a8c 100644 --- a/app/renderer/reducers/urlBarSuggestionsReducer.js +++ b/app/renderer/reducers/urlBarSuggestionsReducer.js @@ -129,7 +129,7 @@ const generateNewSuggestionsList = (state) => { if (sites) { // Filter out Brave default newtab sites and sites with falsey location sites = sites.filterNot((site) => - Immutable.is(site.get('tags'), (new Immutable.List(['default'])) && + (Immutable.is(site.get('tags'), new Immutable.List(['default'])) && site.get('lastAccessedTime') === 1) || !site.get('location') )