We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 344ac52 commit bb609b9Copy full SHA for bb609b9
src/hooks/useNotifications.ts
@@ -333,13 +333,15 @@ export const useNotifications = (colors: boolean): NotificationsState => {
333
(notification) => notification.repository.full_name === repoSlug,
334
);
335
336
- for (const notification of notificationsToRemove) {
337
- await markNotificationDone(
338
- accounts,
339
- notification.id,
340
- notifications[accountIndex].hostname,
341
- );
342
- }
+ await Promise.all(
+ notificationsToRemove.map((notification) =>
+ markNotificationDone(
+ accounts,
+ notification.id,
+ notifications[accountIndex].hostname,
+ ),
343
344
+ );
345
}
346
347
const updatedNotifications = removeNotifications(
0 commit comments