🛂 (whatsapp) Remove feature flag

Closes #401
This commit is contained in:
Baptiste Arnaud
2023-09-29 15:10:39 +02:00
parent 1a4b8bb8fc
commit 0e4e10c77b
4 changed files with 18 additions and 30 deletions

View File

@@ -10,7 +10,6 @@ import {
Text,
} from '@chakra-ui/react'
import { runtimes } from '../data'
import { isWhatsAppAvailable } from '@/features/telemetry/posthog'
type Runtime = (typeof runtimes)[number]
@@ -37,9 +36,6 @@ export const RuntimeMenu = ({ selectedRuntime, onSelectRuntime }: Props) => {
<MenuList w="100px">
{runtimes
.filter((runtime) => runtime.name !== selectedRuntime.name)
.filter((runtime) =>
runtime.name === 'WhatsApp' ? isWhatsAppAvailable() : true
)
.map((runtime) => (
<MenuItem
key={runtime.name}