Gaëtan Renaudeau
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
3 deletions
-
src/reducers/accounts.js
|
|
@ -81,9 +81,8 @@ export function getVisibleAccounts(state: { accounts: AccountsState }): Account[ |
|
|
|
return getAccounts(state).filter(account => account.archived !== true) |
|
|
|
} |
|
|
|
|
|
|
|
export function getAccountById(state: { accounts: AccountsState }, id: string): Account | null { |
|
|
|
const account = getAccounts(state).find(account => account.id === id) |
|
|
|
return account || null |
|
|
|
export function getAccountById(state: { accounts: AccountsState }, id: string): ?Account { |
|
|
|
return getAccounts(state).find(account => account.id === id) |
|
|
|
} |
|
|
|
|
|
|
|
export function canCreateAccount(state: State): boolean { |
|
|
|