build warning clean up

This commit is contained in:
2023-02-03 17:00:32 +00:00
parent b8de41e592
commit a2ee8c58a6
2 changed files with 19 additions and 15 deletions
@@ -289,7 +289,6 @@ export const RenderTextfield = ({
name={name} name={name}
id={id} id={id}
type={type} type={type}
validate={[required]}
/> />
</> </>
); );
+19 -14
View File
@@ -38,23 +38,28 @@ const Home = (props) => {
const dispatch = useDispatch(); const dispatch = useDispatch();
useEffect(async () => { useEffect(() => {
const thisSession = await getSession(); const updateAccountStore = async () => {
const thisSession = await getSession();
if (thisSession) { if (thisSession) {
let [loggedInUser] = await Promise.all([ let [loggedInUser] = await Promise.all([
await getPortalLogin(thisSession.user.email), await getPortalLogin(thisSession.user.email),
]); ]);
dispatch( dispatch(
setAccountDetails( setAccountDetails(
await getPersonalAccount(loggedInUser.value[0].contactid) await getPersonalAccount(
) loggedInUser.value[0].contactid
); )
dispatch(setContainerID(thisSession.user.id)); )
);
dispatch(setContainerID(thisSession.user.id));
//dispatch(setRepresentationSubmit(true)); //dispatch(setRepresentationSubmit(true));
} }
};
updateAccountStore();
}, [dispatch]); }, [dispatch]);
return ( return (