don't show toast on 404

This commit is contained in:
Alex Holliday committed 2025-02-10 16:17:07 -08:00
1 parent 6e58b6a630
commit 5217292125
1 file changed
+6 -1
@@ -20,7 +20,12 @@ const useStatusPagesFetch = () => {
setStatusPages(res?.data?.data);
} catch (error) {
setNetworkError(true);
createToast(error.message, "error");
if (error.response.status === 404) {
return;
}
createToast({
body: error.message,
});
} finally {
setIsLoading(false);
}