This commit is contained in:
vdv committed 2023-02-11 17:52:11 +01:00
1 parent 79fed3cc28
commit 853b158dcf
3 files changed
+91 -90

No files matched your search

+4
View File
@@ -34,6 +34,10 @@ const Account: Component<{}> = (props) => {
const newAccounts: any = await dispatch({
action: 'getAccounts',
});
console.log({
caller: 'Account / handleClickOpen',
newAccounts,
});
setAccounts([{ id: '--new--', name: t('newAccount') }, ...newAccounts]);
setAccount(
cloneDeep(getAccountById(accounts(), settings().currentAccountId))