From c8f90a39733aba0d03742cab311bdb728a3d127b Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Mon, 4 Jan 2016 15:24:36 -0500 Subject: [PATCH] FIX: On mobile forgot password was broken --- .../javascripts/discourse/controllers/forgot-password.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/controllers/forgot-password.js.es6 b/app/assets/javascripts/discourse/controllers/forgot-password.js.es6 index 00d551bd8..64aac27c9 100644 --- a/app/assets/javascripts/discourse/controllers/forgot-password.js.es6 +++ b/app/assets/javascripts/discourse/controllers/forgot-password.js.es6 @@ -4,7 +4,7 @@ export default Ember.Controller.extend(ModalFunctionality, { // You need a value in the field to submit it. submitDisabled: function() { - return Ember.isEmpty(this.get('accountEmailOrUsername').trim()) || this.get('disabled'); + return Ember.isEmpty((this.get('accountEmailOrUsername') || '').trim()) || this.get('disabled'); }.property('accountEmailOrUsername', 'disabled'), actions: {