FIX: On mobile forgot password was broken

This commit is contained in:
Robin Ward 2016-01-04 15:24:36 -05:00
parent c7df6783a9
commit c8f90a3973

View file

@ -4,7 +4,7 @@ export default Ember.Controller.extend(ModalFunctionality, {
// You need a value in the field to submit it. // You need a value in the field to submit it.
submitDisabled: function() { 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'), }.property('accountEmailOrUsername', 'disabled'),
actions: { actions: {