1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-09 07:25:19 +02:00

Merge pull request #76 from Neumand/bug/other-accordion

Fix assets and debts 'other' expanding in tandem
This commit is contained in:
Josh Pigford 2024-01-15 09:04:39 -06:00 committed by GitHub
commit e0b6d2c05c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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