MCPcopy
hub / github.com/gitify-app/gitify / doesAllAccountsHaveErrors

Function doesAllAccountsHaveErrors

src/renderer/utils/core/errors.ts:57–64  ·  view source on GitHub ↗
(
  accountNotifications: AccountNotifications[],
)

Source from the content-addressed store, hash-verified

55 * Check if all accounts have errors
56 */
57export 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

Callers 2

errors.test.tsFile · 0.90
useNotificationsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected