( accountNotifications: AccountNotifications[], )
| 55 | * Check if all accounts have errors |
| 56 | */ |
| 57 | export function doesAllAccountsHaveErrors( |
| 58 | accountNotifications: AccountNotifications[], |
| 59 | ) { |
| 60 | return ( |
| 61 | accountNotifications.length > 0 && |
| 62 | accountNotifications.every((account) => account.error !== null) |
| 63 | ); |
| 64 | } |
| 65 | |
| 66 | /** |
| 67 | * Check if all account errors are the same |
no outgoing calls
no test coverage detected