From a09a09f686e10ec24f49478f3d47d64942791db6 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Thu, 22 Sep 2016 10:01:25 -0400 Subject: [PATCH] FIX: Test was broken --- app/assets/javascripts/wizard/components/invite-list.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/wizard/components/invite-list.js.es6 b/app/assets/javascripts/wizard/components/invite-list.js.es6 index 6d70da3ed..6786458b5 100644 --- a/app/assets/javascripts/wizard/components/invite-list.js.es6 +++ b/app/assets/javascripts/wizard/components/invite-list.js.es6 @@ -30,7 +30,7 @@ export default Ember.Component.extend({ 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); this.set('field.warning', showWarning ? 'invites.none_added' : null);