From 9ff2073b73fd43a37f856d74cf11eb1fdc76bef1 Mon Sep 17 00:00:00 2001 From: GanghyeonSeo Date: Thu, 6 Jun 2024 04:15:05 +0900 Subject: [PATCH] modify: add userInfo to useEffect deps --- src/pages/MainPage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/MainPage.tsx b/src/pages/MainPage.tsx index 11e28d1..f859a0f 100644 --- a/src/pages/MainPage.tsx +++ b/src/pages/MainPage.tsx @@ -79,7 +79,7 @@ function MainPage() { }; fetchUserInfo(); - }, [user]); + }, [user, userInfo]); const renderTodayLookBook = () => { if (!lookBookData || !lookBookData.list || lookBookData.list.length === 0) {