Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Commit

Permalink
fix notification middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
alepop committed Aug 21, 2017
1 parent 22dff25 commit 18772c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store/middlewares/notification.js
Expand Up @@ -4,9 +4,9 @@ import Notification from '../../utils/notification';
const notificationMiddleware = (store) => {
const notify = Notification.init();
return next => (action) => {
const { account } = store.getState();
next(action);

const { account } = store.getState();
switch (action.type) {
case actionTypes.accountUpdated: {
const amount = action.data.balance - account.balance;
Expand Down

0 comments on commit 18772c3

Please sign in to comment.