mirror of
https://github.com/element-hq/element-call.git
synced 2026-10-23 04:22:27 +00:00
Fix login/register
This commit is contained in:
1 parent
4b0bb13f1e
commit
ed4ddc8e8c
1 file changed
+5
-2
@@ -24,12 +24,15 @@ export function LoginOrRegister({ onRegister, onLogin }) {
|
||||
|
||||
const onSubmitRegisterForm = useCallback((e) => {
|
||||
e.preventDefault();
|
||||
onRegister(usernameRef.current.value, passwordRef.current.value);
|
||||
onRegister(
|
||||
registerUsernameRef.current.value,
|
||||
registerPasswordRef.current.value
|
||||
);
|
||||
});
|
||||
|
||||
const onSubmitLoginForm = useCallback((e) => {
|
||||
e.preventDefault();
|
||||
onLogin(usernameRef.current.value, passwordRef.current.value);
|
||||
onLogin(loginUsernameRef.current.value, loginPasswordRef.current.value);
|
||||
});
|
||||
|
||||
return (
|
||||
|
||||
Reference in new issue
Block a user