Skip to content

Commit

Permalink
fix: isLanding check only page and not if user is logged to display h…
Browse files Browse the repository at this point in the history
…eader and footer
  • Loading branch information
HoreKk committed Jan 23, 2025
1 parent 7285472 commit 7983866
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
7 changes: 3 additions & 4 deletions webapp/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
## [0.75.7](https://github.com/SocialGouv/carte-jeune-engage/compare/v0.75.6...v0.75.7) (2025-01-22)


### Bug Fixes

* **ci-cd:** use token-bureau ([2d26332](https://github.com/SocialGouv/carte-jeune-engage/commit/2d26332bd9e8624930bdad2f1db71230ee4471b4))
* comment auth code in middleware ([380f3e3](https://github.com/SocialGouv/carte-jeune-engage/commit/380f3e3d377c05b09c2ff19b6e07ed57d678229f))
* middleware issue ([92ddaf4](https://github.com/SocialGouv/carte-jeune-engage/commit/92ddaf40e0ed84b14d27fb2c2eff04ef4c555e15))
- **ci-cd:** use token-bureau ([2d26332](https://github.com/SocialGouv/carte-jeune-engage/commit/2d26332bd9e8624930bdad2f1db71230ee4471b4))
- comment auth code in middleware ([380f3e3](https://github.com/SocialGouv/carte-jeune-engage/commit/380f3e3d377c05b09c2ff19b6e07ed57d678229f))
- middleware issue ([92ddaf4](https://github.com/SocialGouv/carte-jeune-engage/commit/92ddaf40e0ed84b14d27fb2c2eff04ef4c555e15))

## [0.75.6](https://github.com/SocialGouv/carte-jeune-engage/compare/v0.75.5...v0.75.6) (2025-01-22)

Expand Down
3 changes: 2 additions & 1 deletion webapp/src/layouts/DefaultLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ export default function DefaultLayout({ children }: { children: ReactNode }) {
pathname === "/mentions-legales" ||
pathname === "/politique-de-confidentialite";

const isLanding = (isPublicPage || isLegalPage) && !isOtpGenerated && !user;
const isLanding = isPublicPage || isLegalPage;
// && !isOtpGenerated && !user;

const handleBeforeInstallPrompt = (event: Event) => {
// Prevent the default behavior to keep the event available for later use
Expand Down

0 comments on commit 7983866

Please sign in to comment.