mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-12 19:32:17 +02:00
fix conflicts
This commit is contained in:
parent
88c6e93e2c
commit
081920a58d
@ -160,15 +160,16 @@ export default class LoginFormUiHandler extends FormModalUiHandler {
|
||||
return onFail(i18next.t("menu:emptyUsername"));
|
||||
}
|
||||
|
||||
const [usernameInput, passwordInput] = this.inputs;
|
||||
const [usernameInput, passwordInput] = this.inputs;
|
||||
|
||||
pokerogueApi.account.login({ username: usernameInput.text, password: passwordInput.text }).then(error => {
|
||||
if (!error && originalLoginAction) {
|
||||
originalLoginAction();
|
||||
} else {
|
||||
onFail(error);
|
||||
}
|
||||
});
|
||||
pokerogueApi.account.login({ username: usernameInput.text, password: passwordInput.text }).then(error => {
|
||||
if (!error && originalLoginAction) {
|
||||
originalLoginAction();
|
||||
} else {
|
||||
onFail(error);
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
return true;
|
||||
|
@ -122,17 +122,17 @@ export default class RegistrationFormUiHandler extends FormModalUiHandler {
|
||||
}
|
||||
const [usernameInput, passwordInput] = this.inputs;
|
||||
pokerogueApi.account
|
||||
.register({
|
||||
username: usernameInput.text,
|
||||
password: passwordInput.text,
|
||||
})
|
||||
.register({
|
||||
username: usernameInput.text,
|
||||
password: passwordInput.text,
|
||||
})
|
||||
.then(registerError => {
|
||||
if (!registerError) {
|
||||
pokerogueApi.account
|
||||
.login({
|
||||
username: usernameInput.text,
|
||||
password: passwordInput.text,
|
||||
})
|
||||
.login({
|
||||
username: usernameInput.text,
|
||||
password: passwordInput.text,
|
||||
})
|
||||
.then(loginError => {
|
||||
if (!loginError) {
|
||||
originalRegistrationAction?.();
|
||||
|
Loading…
Reference in New Issue
Block a user