updated
This commit is contained in:
@@ -40,29 +40,26 @@ const Home = (props) => {
|
||||
|
||||
const dispatch = useDispatch();
|
||||
|
||||
useEffect(() => {
|
||||
const updateAccountStore = async () => {
|
||||
const thisSession = await getSession();
|
||||
// useEffect(() => {
|
||||
// const updateAccountStore = async () => {
|
||||
// const thisSession = await getSession();
|
||||
|
||||
if (thisSession) {
|
||||
let [loggedInUser] = await Promise.all([
|
||||
await getPortalLogin(thisSession.user.email),
|
||||
]);
|
||||
// if (thisSession) {
|
||||
// let loggedInUser = await getPortalLogin(thisSession.user.email);
|
||||
// dispatch(
|
||||
// setAccountDetails(
|
||||
// await getPersonalAccount(
|
||||
// loggedInUser.value[0].contactid
|
||||
// )
|
||||
// )
|
||||
// );
|
||||
// dispatch(setContainerID(thisSession.user.id));
|
||||
|
||||
dispatch(
|
||||
setAccountDetails(
|
||||
await getPersonalAccount(
|
||||
loggedInUser.value[0].contactid
|
||||
)
|
||||
)
|
||||
);
|
||||
dispatch(setContainerID(thisSession.user.id));
|
||||
|
||||
//dispatch(setRepresentationSubmit(true));
|
||||
}
|
||||
};
|
||||
updateAccountStore();
|
||||
}, [dispatch]);
|
||||
// //dispatch(setRepresentationSubmit(true));
|
||||
// }
|
||||
// };
|
||||
// updateAccountStore();
|
||||
// }, [dispatch]);
|
||||
|
||||
const { data: session, status } = useSession();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user