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 (