Skip to content

Commit

Permalink
fix: feature flag for faq in header
Browse files Browse the repository at this point in the history
  • Loading branch information
tomwisecodes committed Sep 2, 2024
1 parent e97ded5 commit 4100591
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions apps/nextjs/src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,11 @@ const Header = ({
<OakP $font={["body-2", "heading-light-6"]}>Oak AI Experiments</OakP>
</OakFlex>
<OakFlex $alignItems={"center"} $gap={"all-spacing-8"}>
{(typeof featureFlag === "boolean" && featureFlag) ||
(typeof featureFlag === "object" && featureFlag.featureFlag && (
<Link href="/faqs">
<OakP $font="body-2">FAQs</OakP>
</Link>
))}
{featureFlag && (
<Link href="/faqs">
<OakP $font="body-2">FAQs</OakP>
</Link>
)}

<HeaderAuth />

Expand Down

0 comments on commit 4100591

Please sign in to comment.