FIX: Test was broken

This commit is contained in:
Robin Ward 2016-09-22 10:01:25 -04:00
parent fa64b4a526
commit a09a09f686

View file

@ -30,7 +30,7 @@ export default Ember.Component.extend({
this.set('field.value', JSON.stringify(users)); this.set('field.value', JSON.stringify(users));
const staffCount = this.get('step.fieldsById.staff_count.value'); const staffCount = this.get('step.fieldsById.staff_count.value') || 1;
const showWarning = (staffCount < 3 && users.length === 0); const showWarning = (staffCount < 3 && users.length === 0);
this.set('field.warning', showWarning ? 'invites.none_added' : null); this.set('field.warning', showWarning ? 'invites.none_added' : null);