From 6a3d459e5024e6894c2655560d91bbfec8f9e10e Mon Sep 17 00:00:00 2001 From: Joel Jeremy Marquez Date: Tue, 14 Jan 2025 09:10:55 -0800 Subject: [PATCH] Fix addNotification import --- .../desktop-client/src/components/accounts/Account.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/desktop-client/src/components/accounts/Account.tsx b/packages/desktop-client/src/components/accounts/Account.tsx index 19a5aff08a0..f8c28a45e95 100644 --- a/packages/desktop-client/src/components/accounts/Account.tsx +++ b/packages/desktop-client/src/components/accounts/Account.tsx @@ -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, @@ -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 {