( accountNotifications: AccountNotifications[], )
| 67 | * Check if all account errors are the same |
| 68 | */ |
| 69 | export function areAllAccountErrorsSame( |
| 70 | accountNotifications: AccountNotifications[], |
| 71 | ) { |
| 72 | if (accountNotifications.length === 0) { |
| 73 | return true; |
| 74 | } |
| 75 | |
| 76 | const firstError = accountNotifications[0].error; |
| 77 | return accountNotifications.every((account) => account.error === firstError); |
| 78 | } |
no outgoing calls
no test coverage detected