Skip to content

Commit 5f9d977

Browse files
committed
Revert "fix: set request status"
This reverts commit 1b10a2e.
1 parent 1b10a2e commit 5f9d977

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/hooks/useNotifications.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,12 @@ export const useNotifications = (): NotificationsState => {
9696
}
9797

9898
setIsFetching(true);
99+
setRequestFailed(false);
99100

100101
return axios
101102
.all([getGitHubNotifications(), ...getEnterpriseNotifications()])
102103
.then(
103104
axios.spread((gitHubNotifications, ...entAccNotifications) => {
104-
setRequestFailed(false);
105-
106105
const enterpriseNotifications = entAccNotifications.map(
107106
(accountNotifications) => {
108107
const { hostname } = new URL(accountNotifications.config.url);

0 commit comments

Comments
 (0)