From 4372ecbb4e174186012f929173f0632e21ca9995 Mon Sep 17 00:00:00 2001 From: prayag17 Date: Sat, 25 Mar 2023 23:19:34 +0530 Subject: [PATCH] Fix LatestMedia sections showing skeleton evrytime refocusing the app --- src/components/homeSection/latestMediaSection.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/homeSection/latestMediaSection.jsx b/src/components/homeSection/latestMediaSection.jsx index b480c5b..9947c57 100644 --- a/src/components/homeSection/latestMediaSection.jsx +++ b/src/components/homeSection/latestMediaSection.jsx @@ -30,7 +30,7 @@ export const LatestMediaSection = ({ latestMediaLib }) => { queryFn: () => fetchLatestMedia(latestMediaLib[0]), enabled: !!user.data, }); - if (data.isFetching) { + if (data.isLoading) { return ; } if (data.isSuccess && data.data.length >= 1) {