mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-25 16:26:25 +00:00
fix admin-ui-handler (types)
This commit is contained in:
parent
7f999de988
commit
eea9a8852b
@ -150,8 +150,8 @@ export default class AdminUiHandler extends FormModalUiHandler {
|
|||||||
} else if (this.adminMode === AdminMode.ADMIN) {
|
} else if (this.adminMode === AdminMode.ADMIN) {
|
||||||
this.updateAdminPanelInfo(adminSearchResult, AdminMode.SEARCH);
|
this.updateAdminPanelInfo(adminSearchResult, AdminMode.SEARCH);
|
||||||
}
|
}
|
||||||
const onFail = error => {
|
const onFail = (error: string) => {
|
||||||
this.scene.ui.setMode(Mode.ADMIN, Object.assign(config, { errorMessage: error?.trim() }));
|
this.scene.ui.setMode(Mode.ADMIN, Object.assign(this.config, { errorMessage: error?.trim() }));
|
||||||
this.scene.ui.playError();
|
this.scene.ui.playError();
|
||||||
};
|
};
|
||||||
if (!this.inputs[0].text) {
|
if (!this.inputs[0].text) {
|
||||||
|
Loading…
Reference in New Issue
Block a user