Skip to content

Commit

Permalink
fix: do not display ahjo ui button in production
Browse files Browse the repository at this point in the history
  • Loading branch information
sirtawast committed May 15, 2024
1 parent b0b00e7 commit 0ad804a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion frontend/benefit/handler/src/components/header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ const Header: React.FC = () => {
return (
<BaseHeader
title={t('common:appName')}
customItems={[<TemporaryAhjoModeSwitch />]}
customItems={[
process.env.NEXT_PUBLIC_SENTRY_ENVIRONMENT !== 'production' ? (
<TemporaryAhjoModeSwitch />
) : null,
]}
titleUrl={ROUTES.HOME}
skipToContentLabel={t('common:header.linkSkipToContent')}
menuToggleAriaLabel={t('common:header.menuToggleAriaLabel')}
Expand Down

0 comments on commit 0ad804a

Please sign in to comment.