added preferred units back to the user settings menu
This commit is contained in:
parent
d3314a1ab9
commit
a43ff1a8ad
2 changed files with 165 additions and 10 deletions
|
|
@ -16,8 +16,6 @@ export default function AuthWrapper(props: Props) {
|
|||
const url = new URL(window.location.href);
|
||||
|
||||
const isManualLoginPage = url.pathname.includes("/login");
|
||||
console.log(url.pathname)
|
||||
console.log(isManualLoginPage)
|
||||
|
||||
if (isManualLoginPage) {
|
||||
const options: RedirectLoginOptions = {
|
||||
|
|
@ -33,7 +31,7 @@ export default function AuthWrapper(props: Props) {
|
|||
if (parsed.email && parsed.email !== "") {
|
||||
options.authorizationParams!.login_hint = parsed.email.toString(); // prefill email
|
||||
}
|
||||
console.log(options.authorizationParams)
|
||||
|
||||
loginWithRedirect(options)
|
||||
|
||||
} else if (!isAuthenticated && !isLoading) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue