Skip to content

Commit

Permalink
Fix addNotification import
Browse files Browse the repository at this point in the history
  • Loading branch information
joel-jeremy committed Jan 21, 2025
1 parent 6a24f6e commit 81af87a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions packages/loot-core/src/client/store/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import {
reducer as accountsSliceReducer,
getInitialState as getInitialAccountsState,
} from '../accounts/accountsSlice';
import { addNotification } from '../actions';
import {
name as appSliceName,
reducer as appSliceReducer,
Expand All @@ -31,6 +30,7 @@ import {
name as notificationsSliceName,
reducer as notificationsSliceReducer,
getInitialState as getInitialNotificationsState,
addNotification,
} from '../notifications/notificationsSlice';
import {
name as queriesSliceName,
Expand Down Expand Up @@ -84,9 +84,11 @@ notifyOnRejectedActionsMiddleware.startListening({
console.error(action.error);
dispatch(
addNotification({
id: action.type,
type: 'error',
message: action.error.message || 'An unexpected error occurred.',
notification: {
id: action.type,
type: 'error',
message: action.error.message || 'An unexpected error occurred.',
},
}),
);
},
Expand Down

0 comments on commit 81af87a

Please sign in to comment.