Fix register issues on mobile

This commit is contained in:
Zoe Roux 2026-03-29 12:16:50 +02:00
parent 0f31286058
commit ca5b3dc21d
No known key found for this signature in database
2 changed files with 5 additions and 2 deletions

View File

@ -28,7 +28,7 @@ export const Input = ({
ref={ref}
textAlignVertical="center"
className={cn(
"h-6 flex-1 font-sans text-base text-slate-600 outline-0 dark:text-slate-400",
"min-h-6 flex-1 font-sans text-base text-slate-600 outline-0 dark:text-slate-400",
className,
)}
{...props}

View File

@ -22,7 +22,10 @@ export const RegisterPage = () => {
const router = useRouter();
const { t } = useTranslation();
const { data: info } = useFetch(OidcLogin.query(apiUrl));
const { data: info } = useFetch({
...OidcLogin.query(apiUrl),
options: { returnError: true },
});
if (Platform.OS !== "web" && !apiUrl) return <ServerUrlPage />;
if (info?.allowRegister === false) {