From 61d8d041743cae0e0e5a0a7adf94f9fac669c2c1 Mon Sep 17 00:00:00 2001 From: "focp212@naver.com" Date: Mon, 27 Oct 2025 13:14:28 +0900 Subject: [PATCH] alarm count --- src/widgets/navigation/header.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/widgets/navigation/header.tsx b/src/widgets/navigation/header.tsx index 6457111..10e6244 100644 --- a/src/widgets/navigation/header.tsx +++ b/src/widgets/navigation/header.tsx @@ -66,14 +66,14 @@ export const HeaderNavigation = ({ }); } }; - + useEffect(() => { + if(headerType === HeaderType.Home){ + callAlarmCount(); + } + }, [headerType]); useEffect(() => { let mids = useStore.getState().UserStore.selectOptionsMids; setSelectOptions(mids); - - if(headerType === HeaderType.Alim){ - callAlarmCount(); - } }, [loginSuccess]); return (