From 88fd88ff04ecf8e0cf276e02cfe5006bac3a931b Mon Sep 17 00:00:00 2001 From: "shi.gg" Date: Sun, 18 Jan 2026 19:02:26 +0000 Subject: [PATCH] fix: experiments tab crash on top of https://tangled.org/jollywhoppers.com/witchsky.app/pulls/40 --- src/screens/Settings/DeerSettings.tsx | 40 ++++++++++++++------------- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/src/screens/Settings/DeerSettings.tsx b/src/screens/Settings/DeerSettings.tsx index 3adea2b36..9417f39e0 100644 --- a/src/screens/Settings/DeerSettings.tsx +++ b/src/screens/Settings/DeerSettings.tsx @@ -131,28 +131,28 @@ import {Star_Stroke2_Corner0_Rounded as StarIcon} from '#/components/icons/Star' import {Verified_Stroke2_Corner2_Rounded as VerifiedIcon} from '#/components/icons/Verified' import * as Layout from '#/components/Layout' import {Text} from '#/components/Typography' -import { IS_WEB } from '#/env/index.web' +import {IS_WEB} from '#/env' import {SearchProfileCard} from '../Search/components/SearchProfileCard' type Props = NativeStackScreenProps const defaultGateValues = { - alt_share_icon: false, - debug_show_feedcontext: false, - debug_subscriptions: false, - disable_onboarding_find_contacts: false, - disable_settings_find_contacts: false, - explore_show_suggested_feeds: false, - feed_reply_button_open_thread: false, - is_bsky_team_member: false, - disable_live_now_beta: false, - old_postonboarding: false, - onboarding_add_video_feed: false, - onboarding_suggested_starterpacks: false, - remove_show_latest_button: false, - show_composer_prompt: false, - suggested_users_dismiss: false, - test_gate_1: false, - test_gate_2: false + alt_share_icon: false, + debug_show_feedcontext: false, + debug_subscriptions: false, + disable_onboarding_find_contacts: false, + disable_settings_find_contacts: false, + explore_show_suggested_feeds: false, + feed_reply_button_open_thread: false, + is_bsky_team_member: false, + disable_live_now_beta: false, + old_postonboarding: false, + onboarding_add_video_feed: false, + onboarding_suggested_starterpacks: false, + remove_show_latest_button: false, + show_composer_prompt: false, + suggested_users_dismiss: false, + test_gate_1: false, + test_gate_2: false, } satisfies Record function ConstellationInstanceDialog({ @@ -487,7 +487,9 @@ export function DeerSettingsScreen({}: Props) { const showLinkInHandle = useShowLinkInHandle() const setShowLinkInHandle = useSetShowLinkInHandle() - const [gates, setGatesView] = useState(Object.assign(defaultGateValues, Object.fromEntries(useGatesCache()))) + const [gates, setGatesView] = useState( + Object.assign(defaultGateValues, Object.fromEntries(useGatesCache())), + ) const dangerousSetGate = useDangerousSetGate() const setGate = (gate: Gate, value: boolean) => { dangerousSetGate(gate, value) -- 2.51.2