diff --git a/src/renderer/utils/notifications/notifications.ts b/src/renderer/utils/notifications/notifications.ts index 3ed5b0c31..1aef06d0b 100644 --- a/src/renderer/utils/notifications/notifications.ts +++ b/src/renderer/utils/notifications/notifications.ts @@ -42,10 +42,8 @@ function getNotifications(state: GitifyState) { export async function getAllNotifications( state: GitifyState, ): Promise { - const responses = await Promise.all(getNotifications(state)); - const notifications: AccountNotifications[] = await Promise.all( - responses + getNotifications(state) .filter((response) => !!response) .map(async (accountNotifications) => { try {