Revert earlier change to fix bug
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user