Created select account input
This commit is contained in:
@ -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
|
||||
*/
|
||||
|
Reference in New Issue
Block a user