From 3634b5bab55d16b4e30caa74d08db6a88e2dfbbf Mon Sep 17 00:00:00 2001
From: Harrison Healey <harrisonmhealey@gmail.com>
Date: Mon, 28 Mar 2016 15:32:01 -0400
Subject: Fixed adding outgoing webhooks with only a trigger word or a channel

---
 webapp/components/backstage/add_outgoing_webhook.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'webapp/components/backstage/add_outgoing_webhook.jsx')

diff --git a/webapp/components/backstage/add_outgoing_webhook.jsx b/webapp/components/backstage/add_outgoing_webhook.jsx
index 808a7185d..56002dca4 100644
--- a/webapp/components/backstage/add_outgoing_webhook.jsx
+++ b/webapp/components/backstage/add_outgoing_webhook.jsx
@@ -66,7 +66,7 @@ export default class AddOutgoingWebhook extends React.Component {
             clientError: ''
         });
 
-        if (!this.state.channelId || !this.state.triggerWords) {
+        if (!this.state.channelId && !this.state.triggerWords) {
             this.setState({
                 saving: false,
                 clientError: (
-- 
cgit v1.2.3-1-g7c22

