Skip to content

Commit

Permalink
Fix: weeklyPopular
Browse files Browse the repository at this point in the history
  • Loading branch information
cuconveniencestore authored and hookor committed May 31, 2024
1 parent 4ed3e48 commit b65024f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/hooks/home/useGetPopularList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,7 @@ const useGetPopularList = () => {

if (!res && weeklyPopularList) {
setBrandList(weeklyPopularList[currentDate]);
await useSetCacheData(
'brand',
'/WeeklyPopular',
weeklyPopularList[currentDate]
);
await useSetCacheData('brand', '/WeeklyPopular', weeklyPopularList);
return;
}
if (res && weeklyPopularList && cachedDate === currentDate) {
Expand Down

0 comments on commit b65024f

Please sign in to comment.