Skip to content

Commit

Permalink
Fix error notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
zalmoxisus committed Apr 12, 2016
1 parent fafe7a9 commit 4fc7d0b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/browser/extension/background/messaging.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ function messaging(request, sender, sendResponse) {
// Notify when errors occur in the app
window.syncOptions.get(options => {
if (!options.notifyErrors) return;
const error = payload.computedStates[payload.currentStateIndex].error;
const computedState = payload.computedStates[payload.currentStateIndex];
if (!computedState) return;
const error = computedState.error;
if (error === 'Interrupted by an error up the chain') return;
if (error) {
chrome.notifications.create('redux-error', {
Expand Down

0 comments on commit 4fc7d0b

Please sign in to comment.