pl-fe: maybe this time
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
@ -388,6 +388,7 @@ const UI: React.FC<IUI> = React.memo(({ children }) => {
|
|||||||
const features = useFeatures();
|
const features = useFeatures();
|
||||||
const vapidKey = useAppSelector(state => getVapidKey(state));
|
const vapidKey = useAppSelector(state => getVapidKey(state));
|
||||||
const client = useClient();
|
const client = useClient();
|
||||||
|
const instance = useInstance();
|
||||||
|
|
||||||
const { isDropdownMenuOpen } = useUiStore();
|
const { isDropdownMenuOpen } = useUiStore();
|
||||||
const standalone = useAppSelector(isStandalone);
|
const standalone = useAppSelector(isStandalone);
|
||||||
@ -477,8 +478,8 @@ const UI: React.FC<IUI> = React.memo(({ children }) => {
|
|||||||
|
|
||||||
// The user has logged in
|
// The user has logged in
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
loadAccountData();
|
if (instance.fetched) loadAccountData();
|
||||||
}, [!!account]);
|
}, [!!account, instance.fetched]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
dispatch(registerPushNotifications());
|
dispatch(registerPushNotifications());
|
||||||
|
|||||||
Reference in New Issue
Block a user