Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
ichub committed Jul 25, 2024
1 parent d1dd1d5 commit 9f372e7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import React, {
useEffect,
useLayoutEffect,
useMemo,
useRef,
useState
} from "react";
import { useLocation, useNavigate, useSearchParams } from "react-router-dom";
Expand All @@ -18,6 +19,7 @@ import {
useFolders,
useLoadedIssuedPCDs,
useSelf,
useStateContext,
useVisiblePCDsInFolder,
useWrappedPCDCollection
} from "../../../src/appHooks";
Expand Down Expand Up @@ -46,7 +48,7 @@ import {
FolderEventInfo,
FolderExplorerContainer
} from "./Folder";
import { isEvent } from "./utils";
import { initTestData, isEvent } from "./utils";

export const HomeScreen = React.memo(HomeScreenImpl);

Expand All @@ -56,6 +58,15 @@ const FOLDER_QUERY_PARAM = "folder";
* Show the user their Zupass, an overview of cards / PCDs.
*/
export function HomeScreenImpl(): JSX.Element | null {
const state = useStateContext().getState();
const stateHolder = useRef(state);

useEffect(() => {
if (stateHolder.current) {
initTestData(stateHolder.current);
}
}, []);

useSyncE2EEStorage();
const self = useSelf();
const navigate = useNavigate();
Expand Down
1 change: 1 addition & 0 deletions apps/passport-client/src/dispatch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,7 @@ async function createNewUserWithPassword(
dismissToCurrentPage: true
}
});

notifyLoginToOtherTabs();
}

Expand Down

0 comments on commit 9f372e7

Please sign in to comment.