mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-21 06:49:35 +02:00
Fixed error not showing up in certain conditions
This commit is contained in:
parent
7102335153
commit
fa00458090
@ -198,6 +198,7 @@ export default class AdminUiHandler extends FormModalUiHandler {
|
||||
}
|
||||
this.adminLinkUnlink(this.convertInputsToAdmin(), service, mode).then(response => { // attempts to link/unlink depending on the service
|
||||
if (response.error) {
|
||||
this.scene.ui.setMode(Mode.LOADING, { buttonActions: []});
|
||||
return this.showMessage(response.errorType, adminResult, true); // fail
|
||||
} else { // success, reload panel with new results
|
||||
this.scene.ui.setMode(Mode.LOADING, { buttonActions: []});
|
||||
|
Loading…
Reference in New Issue
Block a user