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 20, 2025
1 parent 69ffd02 commit 6a3d459
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/desktop-client/src/components/accounts/Account.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ import { t } from 'i18next';
import { v4 as uuidv4 } from 'uuid';

import { unlinkAccount } from 'loot-core/client/accounts/accountsSlice';
import { addNotification } from 'loot-core/client/actions';
import { syncAndDownload } from 'loot-core/client/app/appSlice';
import {
openAccountCloseModal,
pushModal,
replaceModal,
} from 'loot-core/client/modals/modalsSlice';
import { addNotification } from 'loot-core/client/notifications/notificationsSlice';
import {
createPayee,
initiallyLoadPayees,
Expand Down Expand Up @@ -757,8 +757,10 @@ class AccountInternal extends PureComponent<
console.error('Error applying rules:', error);
this.props.dispatch(
addNotification({
type: 'error',
message: 'Failed to apply rules to transactions',
notification: {
type: 'error',
message: 'Failed to apply rules to transactions',
},
}),
);
} finally {
Expand Down

0 comments on commit 6a3d459

Please sign in to comment.