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

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