Skip to content

Commit

Permalink
Fix emebds not loading sometimes (#3213)
Browse files Browse the repository at this point in the history
* Move `doFetchGeoBlockedList` earlier in the flow

* Don't show "Could not get a user ID..." nag on embeds

---------

Co-authored-by: miko <[email protected]>
  • Loading branch information
keikari and miko authored Jan 21, 2025
1 parent d7337d8 commit dc178ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ui/component/app/view.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 <NagNoUser />;
}

Expand Down
3 changes: 1 addition & 2 deletions ui/redux/actions/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ export function doAuthenticate(
});
checkAuthBusy()
.then(() => {
dispatch(doFetchGeoBlockedList());
return Lbryio.authenticate(DOMAIN, getDefaultLanguage());
})
.then((user) => {
Expand All @@ -146,8 +147,6 @@ export function doAuthenticate(
doInstallNew(appVersion, callbackForUsersWhoAreSharingData, DOMAIN);
}
}

dispatch(doFetchGeoBlockedList());
});
})
.catch((error) => {
Expand Down

0 comments on commit dc178ea

Please sign in to comment.