added preferred units back to the user settings menu

This commit is contained in:
Carter 2025-06-25 13:44:40 -06:00
parent d3314a1ab9
commit a43ff1a8ad
2 changed files with 165 additions and 10 deletions

View file

@ -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) {