fix admin-ui-handler (types)

This commit is contained in:
flx-sta 2024-10-25 15:23:05 -07:00
parent 7f999de988
commit eea9a8852b

View File

@ -150,8 +150,8 @@ export default class AdminUiHandler extends FormModalUiHandler {
} else if (this.adminMode === AdminMode.ADMIN) {
this.updateAdminPanelInfo(adminSearchResult, AdminMode.SEARCH);
}
const onFail = error => {
this.scene.ui.setMode(Mode.ADMIN, Object.assign(config, { errorMessage: error?.trim() }));
const onFail = (error: string) => {
this.scene.ui.setMode(Mode.ADMIN, Object.assign(this.config, { errorMessage: error?.trim() }));
this.scene.ui.playError();
};
if (!this.inputs[0].text) {