diff --git a/modules/CommentController.js b/modules/CommentController.js index 68d812449..a7d59171c 100644 --- a/modules/CommentController.js +++ b/modules/CommentController.js @@ -498,11 +498,11 @@ CommentController.prototype.onReplySubmit = function ( extraParams ) { * @param {Object} data Error data */ CommentController.prototype.saveFail = function ( code, data ) { - this.replyWidget.clearCaptcha(); const captchaData = OO.getProp( data, 'discussiontoolsedit', 'edit', 'captcha' ); if ( captchaData ) { code = 'captcha'; + this.replyWidget.clearCaptcha(); this.replyWidget.setCaptcha( captchaData ); } else { this.replyWidget.setSaveErrorMessage( code, data );