render the loginHandler if components have not loaded on the extensions page to ensure user can log in

This commit is contained in:
jasquat 2023-11-14 10:17:25 -05:00
parent 1197a1a51a
commit 39852b2894
1 changed files with 8 additions and 2 deletions

View File

@ -367,10 +367,16 @@ export default function Extension({ displayErrors = true }: OwnProps) {
return (
<div className="fixed-width-container">
{displayErrors ? <ErrorDisplay /> : null}
<LoginHandler />
{componentsToDisplay}
</div>
);
}
return null;
// load the login handler if the components haven't loaded to ensure
// things aren't loading because the user is not logged in
return (
<div className="fixed-width-container">
<LoginHandler />
</div>
);
}