chore: Refactor AdminUiHandler to clear input fields and revert mode

This commit is contained in:
Frederico Santos 2024-08-30 00:22:09 +01:00
parent 7eb6ba4dfd
commit f7169868f3
1 changed files with 0 additions and 2 deletions

View File

@ -69,12 +69,10 @@ export default class AdminUiHandler extends FormModalUiHandler {
this.inputs[0].setText("");
this.inputs[1].setText("");
this.scene.ui.revertMode();
this.scene.ui.setMode(Mode.ADMIN);
})
.catch((err) => {
console.error(err);
this.scene.ui.revertMode();
this.scene.ui.setMode(Mode.ADMIN);
});
return false;
};