From 107185ad8b286ecb6f555c9d8cdd1fc94d93a82e Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Sun, 7 Jun 2026 13:55:03 -0400 Subject: [PATCH] EquicordHelper: Fix Safety Hub Button --- src/equicordplugins/equicordHelper/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/equicordplugins/equicordHelper/index.tsx b/src/equicordplugins/equicordHelper/index.tsx index 40c29f84b..1b712e489 100644 --- a/src/equicordplugins/equicordHelper/index.tsx +++ b/src/equicordplugins/equicordHelper/index.tsx @@ -30,7 +30,7 @@ let clicked = false; const SafetyHubStore = findStoreLazy("SafetyHubStore"); const fetchSafetyHub: () => Promise = findByCodeLazy("SAFETY_HUB_FETCH_START"); -const requireSafetyHub = extractAndLoadChunksLazy(["USER_SETTINGS_MODAL_KEY"]); +const requireSettingsMenu = extractAndLoadChunksLazy(['type:"USER_SETTINGS_MODAL_OPEN"']); const StandingConfig: Record; }> = { [StandingState.ALL_GOOD]: { label: "All good!", hoverColor: "var(--status-positive)", Icon: ShieldIcon }, @@ -43,7 +43,7 @@ const StandingConfig: Record { requireSafetyHub().then(() => setLoaded(true)).catch(() => { }); }, []); + React.useEffect(() => { requireSettingsMenu().then(() => setLoaded(true)).catch(() => { }); }, []); return loaded ? : null; }