mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-27 06:23:41 -04:00
Fixed a bug in the WizardSettingsModal being destroyed and still trying to do things.
This commit is contained in:
parent
f79a2848fd
commit
107a727d02
1 changed files with 2 additions and 1 deletions
|
@ -50,10 +50,11 @@ module.exports = class WizardSettingsModal extends ModalView
|
|||
res.error =>
|
||||
errors = JSON.parse(res.responseText)
|
||||
console.warn 'Got errors saving user:', errors
|
||||
return if @destroyed
|
||||
forms.applyErrorsToForm(@$el, errors)
|
||||
@disableModalInProgress(@$el)
|
||||
|
||||
res.success (model, response, options) =>
|
||||
@hide()
|
||||
@hide() unless @destroyed
|
||||
|
||||
@enableModalInProgress(@$el)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue