Skip to content

Commit

Permalink
Update TopHeader.tsx
Browse files Browse the repository at this point in the history
Signed-off-by: Oke Kehinde <[email protected]>
  • Loading branch information
okeken authored Jul 17, 2023
1 parent cda9154 commit 3fa5263
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/globals/TopHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const TopHeader = () => {
const { pathname } = useRouter();
const trainingsPat = pathname.split("/").includes("trainings");

if (trainingsPat) {
if (trainingsPat || !isOpened) {
return null;
}

Expand Down

0 comments on commit 3fa5263

Please sign in to comment.