Created select account input

This commit is contained in:
2025-05-12 21:40:48 +02:00
parent c54584550f
commit 3772dce01c
8 changed files with 86 additions and 14 deletions

View File

@ -35,6 +35,13 @@ export class AccountsList {
return this.list.find((a) => a.id === id) ?? null;
}
/**
* Get default account (if any) returning null if none found
*/
get default(): Account | null {
return this.list.find((a) => a.default_account) ?? null;
}
/**
* Update all accounts balances
*/