fix(notification): discord false triggers (#346)

This commit is contained in:
Andrew Mackrodt
2020-09-27 20:01:08 +01:00
committed by GitHub
parent 1bac1b928d
commit 3b90bbbe5d
+1 -1
View File
@@ -38,7 +38,7 @@ export function sendNotification(link: Link, store: Store) {
sendDesktopNotification(link, store);
}
if (notifications.discord.webHookUrl) {
if (notifications.discord.webHookUrl.length > 0) {
Logger.debug('↗ sending discord message');
sendDiscordMessage(link, store);
}