From 1244b08b1e80ae3c44dba02dd2fa89979065752c Mon Sep 17 00:00:00 2001 From: Siwoo Lee Date: Sat, 31 Aug 2024 00:56:03 +0900 Subject: [PATCH] Fix: add conditional statement getPopularList --- src/hooks/home/useGetPopularList.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/home/useGetPopularList.ts b/src/hooks/home/useGetPopularList.ts index 7b7ff51..17115ae 100644 --- a/src/hooks/home/useGetPopularList.ts +++ b/src/hooks/home/useGetPopularList.ts @@ -37,7 +37,7 @@ const useGetPopularList = () => { setBrandList(cachedPopularList.cacheData[cachedDate]); return; } else { - mutate(); + !newPopularList && mutate(); newPopularList && (await updatePopularList(newPopularList)); return; }