Revert earlier change to fix bug

This commit is contained in:
Eric Bailey
2026-02-13 14:20:53 -06:00
parent 43d825b322
commit 6e3603513d
+9 -9
View File
@@ -52,15 +52,6 @@ export function useLiveNowConfig(): LiveNowConfig {
return useMemo(() => {
const disabled = ax.features.enabled(ax.features.LiveNowBetaDisable)
if (!currentAccount?.did || disabled) {
return {
canGoLive: false,
currentAccountAllowedHosts: new Set(),
defaultAllowedHosts: new Set(),
allowedHostsExceptionsByDid: new Map(),
}
}
const defaultAllowedHosts = new Set(
DEFAULT_ALLOWED_DOMAINS.concat(liveNow.allow),
)
@@ -72,6 +63,15 @@ export function useLiveNowConfig(): LiveNowConfig {
)
}
if (!currentAccount?.did || disabled) {
return {
canGoLive: false,
currentAccountAllowedHosts: new Set(),
defaultAllowedHosts,
allowedHostsExceptionsByDid,
}
}
return {
canGoLive: true,
currentAccountAllowedHosts: