Skip to content

Commit

Permalink
Fix: add conditional statement getPopularList
Browse files Browse the repository at this point in the history
  • Loading branch information
cuconveniencestore authored and hookor committed Aug 30, 2024
1 parent 4a98ce4 commit 1244b08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/home/useGetPopularList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const useGetPopularList = () => {
setBrandList(cachedPopularList.cacheData[cachedDate]);
return;
} else {
mutate();
!newPopularList && mutate();
newPopularList && (await updatePopularList(newPopularList));
return;
}
Expand Down

0 comments on commit 1244b08

Please sign in to comment.