Skip to content

Commit

Permalink
fix: show the banner on the home page
Browse files Browse the repository at this point in the history
  • Loading branch information
joelhooks committed Jan 13, 2025
1 parent cc9b8f1 commit 74cbb35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/epic-web/src/components/app/navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1016,7 +1016,7 @@ export const Banner: React.FC<{
}

// Don't show the banner on product page
if (router.query.slug === productOnSale?.slug) {
if (router.query.slug && router.query.slug === productOnSale?.slug) {
return null
}
if (router.pathname === `/${productOnSale?.slug}`) {
Expand Down

0 comments on commit 74cbb35

Please sign in to comment.