From 08cfcf43bc185a0bd8c2622d90a62ef74bbf737a Mon Sep 17 00:00:00 2001 From: Joel Jeremy Marquez Date: Wed, 18 Dec 2024 12:00:03 -0800 Subject: [PATCH] Cleanup --- packages/desktop-client/src/components/sidebar/Accounts.tsx | 4 ++-- packages/loot-core/src/client/constants.ts | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/desktop-client/src/components/sidebar/Accounts.tsx b/packages/desktop-client/src/components/sidebar/Accounts.tsx index 9ba1e929f10..d05e90b74dc 100644 --- a/packages/desktop-client/src/components/sidebar/Accounts.tsx +++ b/packages/desktop-client/src/components/sidebar/Accounts.tsx @@ -119,7 +119,7 @@ export function Accounts() { account={account} connected={!!account.bank} pending={syncingAccountIds.includes(account.id)} - failed={!!failedAccounts.get(account.id)} + failed={failedAccounts.has(account.id)} updated={updatedAccounts.includes(account.id)} to={getAccountPath(account)} query={queries.accountBalance(account)} @@ -149,7 +149,7 @@ export function Accounts() { account={account} connected={!!account.bank} pending={syncingAccountIds.includes(account.id)} - failed={!!failedAccounts.get(account.id)} + failed={failedAccounts.has(account.id)} updated={updatedAccounts.includes(account.id)} to={getAccountPath(account)} query={queries.accountBalance(account)} diff --git a/packages/loot-core/src/client/constants.ts b/packages/loot-core/src/client/constants.ts index 6bd4e2cd459..40406878536 100644 --- a/packages/loot-core/src/client/constants.ts +++ b/packages/loot-core/src/client/constants.ts @@ -25,8 +25,6 @@ export const ADD_NOTIFICATION = 'ADD_NOTIFICATION'; export const REMOVE_NOTIFICATION = 'REMOVE_NOTIFICATION'; export const SET_NOTIFICATION_INSET = 'SET_NOTIFICATION_INSET'; export const GET_USER_DATA = 'GET_USER_DATA'; -// export const SET_LAST_UNDO_STATE = 'SET_LAST_UNDO_STATE'; -// export const SET_LAST_SPLIT_STATE = 'SET_LAST_SPLIT_STATE'; export const SET_ACCOUNTS_SYNCING = 'SET_ACCOUNTS_SYNCING'; export const ACCOUNT_SYNC_STATUS = 'ACCOUNT_SYNC_STATUS'; export const SIGN_OUT = 'SIGN_OUT';