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; }