Skip to content

Commit

Permalink
Merge pull request rauchg#164 from andrewsardone/fix-crash-when-no-ch…
Browse files Browse the repository at this point in the history
…annels

Fix TypeError regression when submitting form without optional SLACK_CHANNELS config
  • Loading branch information
rauchg committed Mar 22, 2016
2 parents 32857c4 + d6d9db7 commit 0dd5d2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/assets/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ body.addEventListener('submit', function(ev){
button.disabled = true;
button.className = '';
button.innerHTML = 'Please Wait';
invite(channel.value, coc && coc.checked ? 1 : 0, email.value, function(err, msg){
invite(channel ? channel.value : null, coc && coc.checked ? 1 : 0, email.value, function(err, msg){
if (err) {
button.removeAttribute('disabled');
button.className = 'error';
Expand Down

0 comments on commit 0dd5d2c

Please sign in to comment.