From e13779f2c0cedf385f62c0271672b443c2a7e1d6 Mon Sep 17 00:00:00 2001 From: Hailey Date: Wed, 9 Oct 2024 23:35:36 -0700 Subject: [PATCH] remove dev check --- modules/bottom-sheet/src/BottomSheet.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/bottom-sheet/src/BottomSheet.tsx b/modules/bottom-sheet/src/BottomSheet.tsx index bcc2c42ad13..eec7736349c 100644 --- a/modules/bottom-sheet/src/BottomSheet.tsx +++ b/modules/bottom-sheet/src/BottomSheet.tsx @@ -10,7 +10,7 @@ export const BottomSheet = React.forwardRef< >(function BottomSheet(props, ref) { const Portal = useBottomSheetPortal_INTERNAL() - if (__DEV__ && !Portal) { + if (!Portal) { throw new Error( 'BottomSheet: You need to wrap your component tree with a to use the bottom sheet.', )