diff --git a/apps/web/components/navigation/header/index.tsx b/apps/web/components/navigation/header/index.tsx index d7b6731..362154b 100644 --- a/apps/web/components/navigation/header/index.tsx +++ b/apps/web/components/navigation/header/index.tsx @@ -1,4 +1,5 @@ 'use client'; + import { BackButton } from './back-button'; import { cn } from '@repo/ui/lib/utils'; import { isTMA } from '@telegram-apps/sdk-react'; @@ -6,16 +7,16 @@ import { isTMA } from '@telegram-apps/sdk-react'; type Props = { title: string | undefined }; export function PageHeader(props: Readonly) { - const isTG = isTMA('simple'); + const hideBackButton = process.env.NODE_ENV === 'production' || isTMA('simple'); return (
- {!isTG && } + {!hideBackButton && } {props.title}
);