Compare commits

...

1 Commits

Author SHA1 Message Date
Arik Chakma
0dae2db728 fix: hide loading screen on error 2024-11-27 13:27:26 +06:00
2 changed files with 10 additions and 0 deletions

View File

@@ -93,6 +93,15 @@ export function CustomRoadmap(props: CustomRoadmapProps) {
hideRoadmapLoader();
}, [data]);
useEffect(() => {
if (!error) {
return;
}
setIsLoading(false);
hideRoadmapLoader();
}, [error]);
if (isLoading) {
return null;
}

View File

@@ -34,6 +34,7 @@ export function useCustomRoadmap(options: UseCustomRoadmapOptions) {
return httpGet(roadmapUrl.toString());
},
retry: false,
enabled: !!(slug || id),
},
queryClient,