From 74f1f7f027f4cffb366166152ff74c9f863ecb86 Mon Sep 17 00:00:00 2001 From: David Neuman Date: Mon, 15 Jan 2024 08:27:02 -0500 Subject: [PATCH] Fix assets and debts 'other' expanding in tandem --- libs/client/features/src/account/AccountsSidebar.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/client/features/src/account/AccountsSidebar.tsx b/libs/client/features/src/account/AccountsSidebar.tsx index da001352..43d350cb 100644 --- a/libs/client/features/src/account/AccountsSidebar.tsx +++ b/libs/client/features/src/account/AccountsSidebar.tsx @@ -187,7 +187,9 @@ export default function AccountsSidebar() { label={title} balances={balances.data} inverted={classification === 'liability'} - onToggle={(isExpanded) => updateToggleState(title, isExpanded)} + onToggle={(isExpanded) => + updateToggleState(`${title}-${classification}`, isExpanded) + } expanded={toggleState[title] !== false} level={1} syncing={items.some((a) => a.syncing)}