Skip to content

Commit

Permalink
show alert only for users with student profile
Browse files Browse the repository at this point in the history
  • Loading branch information
Markusplay committed Jan 29, 2025
1 parent 380cdb6 commit 1d9184b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/[locale]/(private)/sub-layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const SubLayout = async ({ children, breadcrumbs = [], pageTitle, classNa
const t = await getTranslations('global.menu');
const user = await getUserDetails();

if (!user?.codeOfHonorSignDate) {
if (!user?.codeOfHonorSignDate && !!user?.studentProfile) {
return <CodeOfHonorAlert />;
}

Expand Down

0 comments on commit 1d9184b

Please sign in to comment.