pl-fe: maybe this time

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2025-08-02 14:49:51 +02:00
parent 90c36c8ead
commit fca7a57cb5

View File

@ -388,6 +388,7 @@ const UI: React.FC<IUI> = React.memo(({ children }) => {
const features = useFeatures();
const vapidKey = useAppSelector(state => getVapidKey(state));
const client = useClient();
const instance = useInstance();
const { isDropdownMenuOpen } = useUiStore();
const standalone = useAppSelector(isStandalone);
@ -477,8 +478,8 @@ const UI: React.FC<IUI> = React.memo(({ children }) => {
// The user has logged in
useEffect(() => {
loadAccountData();
}, [!!account]);
if (instance.fetched) loadAccountData();
}, [!!account, instance.fetched]);
useEffect(() => {
dispatch(registerPushNotifications());