Fix LatestMedia sections showing skeleton evrytime refocusing the app

This commit is contained in:
prayag17 committed 2023-03-25 23:19:34 +05:30
1 parent 69d0b4558f
commit 4372ecbb4e
1 file changed
+1 -1
@@ -30,7 +30,7 @@ export const LatestMediaSection = ({ latestMediaLib }) => {
queryFn: () => fetchLatestMedia(latestMediaLib[0]),
enabled: !!user.data,
});
if (data.isFetching) {
if (data.isLoading) {
return <CardsSkeleton />;
}
if (data.isSuccess && data.data.length >= 1) {