From dc178eabca9bc346cae0bd907b1d19ae5937061d Mon Sep 17 00:00:00 2001 From: miko <34790748+keikari@users.noreply.github.com> Date: Tue, 21 Jan 2025 19:43:47 +0200 Subject: [PATCH] Fix emebds not loading sometimes (#3213) * Move `doFetchGeoBlockedList` earlier in the flow * Don't show "Could not get a user ID..." nag on embeds --------- Co-authored-by: miko --- ui/component/app/view.jsx | 2 +- ui/redux/actions/user.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/ui/component/app/view.jsx b/ui/component/app/view.jsx index 16caa65cd2..071bbf7d4e 100644 --- a/ui/component/app/view.jsx +++ b/ui/component/app/view.jsx @@ -208,7 +208,7 @@ function App(props: Props) { // Only 1 nag is possible, so show the most important: - if (user === null) { + if (user === null && !embedPath) { return ; } diff --git a/ui/redux/actions/user.js b/ui/redux/actions/user.js index 8ee087a68f..8c910ab352 100644 --- a/ui/redux/actions/user.js +++ b/ui/redux/actions/user.js @@ -127,6 +127,7 @@ export function doAuthenticate( }); checkAuthBusy() .then(() => { + dispatch(doFetchGeoBlockedList()); return Lbryio.authenticate(DOMAIN, getDefaultLanguage()); }) .then((user) => { @@ -146,8 +147,6 @@ export function doAuthenticate( doInstallNew(appVersion, callbackForUsersWhoAreSharingData, DOMAIN); } } - - dispatch(doFetchGeoBlockedList()); }); }) .catch((error) => {