fix(front): update initial state api url (#1132)

This commit is contained in:
Antoine 2025-11-02 12:21:44 +01:00 committed by GitHub
parent 8348e185fc
commit 8a1b90f035
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ import { PasswordInput } from "./password-input";
import { ServerUrlPage } from "./server-url";
export const LoginPage = () => {
const [apiUrl] = useQueryState("apiUrl", null);
const [apiUrl] = useQueryState("apiUrl", "");
const [username, setUsername] = useState("");
const [password, setPassword] = useState("");
const [error, setError] = useState<string | undefined>();

View File

@ -11,7 +11,7 @@ import { PasswordInput } from "./password-input";
import { ServerUrlPage } from "./server-url";
export const RegisterPage = () => {
const [apiUrl] = useQueryState("apiUrl", null);
const [apiUrl] = useQueryState("apiUrl", "");
const [email, setEmail] = useState("");
const [username, setUsername] = useState("");
const [password, setPassword] = useState("");