nullish -> or

This commit is contained in:
Randy Brown
2021-11-09 12:33:00 +02:00
committed by Mantas
parent 896f3a6ff0
commit db26e06628
+4
View File
@@ -30,7 +30,11 @@ try {
if (channelId.length > 0 && (message.length > 0 || payload)) {
// post message
<<<<<<< HEAD
web.chat.postMessage({ channel: channelId, text: message, ...(payload ?? {}) });
=======
web.chat.postMessage({channel: channelId, text: message, ...(payload || {})});
>>>>>>> 3cdd60e (nullish -> or)
} else {
console.log('missing either channel-id, slack-message or payload! Did not send a message via chat.postMessage with botToken');
}