1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-09 15:35:22 +02:00

Fix assets and debts 'other' expanding in tandem

This commit is contained in:
David Neuman 2024-01-15 08:27:02 -05:00
parent 9fcf21e2cc
commit 74f1f7f027

View file

@ -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)}