ENCOA-129: When Creating a Single user Corporate OR Master Corporate it should have the field Department to be configured

This commit is contained in:
Tiago Ribeiro
2024-08-29 15:18:55 +01:00
parent fdc8f98b21
commit b57e11bec4
3 changed files with 12 additions and 3 deletions

View File

@@ -54,7 +54,7 @@ export const getServerSideProps = withIronSessionSsr(async ({req, res}) => {
};
}
const linkedCorporate = await getUserCorporate(user.id);
const linkedCorporate = (await getUserCorporate(user.id)) || null;
return {
props: {user, envVariables, linkedCorporate},