mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 15:48:43 -05:00
FIX: Test was broken
This commit is contained in:
parent
fa64b4a526
commit
a09a09f686
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue