mirror of
https://github.com/status-im/spiff-arena.git
synced 2025-01-28 10:45:07 +00:00
render the loginHandler if components have not loaded on the extensions page to ensure user can log in
This commit is contained in:
parent
1197a1a51a
commit
39852b2894
@ -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>
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user