From fe98aa6f61b26db3fd64ff9e22e32e58ccf2c5f0 Mon Sep 17 00:00:00 2001 From: Adam Setch Date: Tue, 16 Apr 2024 06:09:45 -0400 Subject: [PATCH] fix: set request status --- src/hooks/useNotifications.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/useNotifications.ts b/src/hooks/useNotifications.ts index 5565ba137..6fd6f7089 100644 --- a/src/hooks/useNotifications.ts +++ b/src/hooks/useNotifications.ts @@ -96,12 +96,12 @@ export const useNotifications = (): NotificationsState => { } setIsFetching(true); - setRequestFailed(false); return axios .all([getGitHubNotifications(), ...getEnterpriseNotifications()]) .then( axios.spread((gitHubNotifications, ...entAccNotifications) => { + setRequestFailed(false); const enterpriseNotifications = entAccNotifications.map( (accountNotifications) => { const { hostname } = new URL(accountNotifications.config.url);