Revert earlier change to fix bug
This commit is contained in:
@@ -52,15 +52,6 @@ export function useLiveNowConfig(): LiveNowConfig {
|
|||||||
return useMemo(() => {
|
return useMemo(() => {
|
||||||
const disabled = ax.features.enabled(ax.features.LiveNowBetaDisable)
|
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(
|
const defaultAllowedHosts = new Set(
|
||||||
DEFAULT_ALLOWED_DOMAINS.concat(liveNow.allow),
|
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 {
|
return {
|
||||||
canGoLive: true,
|
canGoLive: true,
|
||||||
currentAccountAllowedHosts:
|
currentAccountAllowedHosts:
|
||||||
|
|||||||
Reference in New Issue
Block a user