Skip to content

Commit

Permalink
Fixes include/exclude when updating db
Browse files Browse the repository at this point in the history
Resolves brave#12621

Auditors:

Test Plan:
  • Loading branch information
NejcZdovc committed Jan 12, 2018
1 parent da42f04 commit 82edcde
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/browser/api/ledger.js
Original file line number Diff line number Diff line change
Expand Up @@ -1762,7 +1762,9 @@ const onCallback = (state, result, delayTime) => {
const publishers = ledgerState.getPublishers(state)
for (let item of publishers) {
const publisherKey = item[0]
if (!getSetting(settings.PAYMENTS_SITES_AUTO_SUGGEST)) {
const publisher = item[1] || Immutable.Map()

if (publisher.getIn(['options', 'exclude'])) {
appActions.onPublisherOptionUpdate(publisherKey, 'exclude', true)
savePublisherOption(publisherKey, 'exclude', true)
} else {
Expand Down

0 comments on commit 82edcde

Please sign in to comment.