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

View File

@ -367,10 +367,16 @@ export default function Extension({ displayErrors = true }: OwnProps) {
return ( return (
<div className="fixed-width-container"> <div className="fixed-width-container">
{displayErrors ? <ErrorDisplay /> : null} {displayErrors ? <ErrorDisplay /> : null}
<LoginHandler />
{componentsToDisplay} {componentsToDisplay}
</div> </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>
);
} }