Handle totals with no flights

This commit is contained in:
april committed 2024-01-09 13:17:58 -06:00
1 parent f0d8af101b
commit 9e4520b218
2 files changed
+131 -115

No files matched your search

+5 -2
View File
@@ -45,8 +45,11 @@ export default function Index() {
staleTime: 1000,
retry: (failureCount, error: Error) => {
return (
!error ||
(error instanceof AxiosError && error.response?.status !== 401)
failureCount < 5 &&
(!error ||
(error instanceof AxiosError &&
error.response?.status !== 401 &&
error.response?.status !== 404))
);
},
},