fix(notification): wrong condition for sounds playing (#91)

Co-authored-by: Jef LeCompte <jeffreylec@gmail.com>
This commit is contained in:
Mark Dietzer
2020-09-20 05:47:37 -07:00
committed by GitHub
parent df5ba68e94
commit 103d96dc81
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ const notifications = {
carrier: process.env.PHONE_CARRIER ?? '', carrier: process.env.PHONE_CARRIER ?? '',
number: process.env.PHONE_NUMBER ?? '' number: process.env.PHONE_NUMBER ?? ''
}, },
playSound: process.env.PLAY_SOUND ?? 'false', playSound: process.env.PLAY_SOUND ?? '',
pushover: { pushover: {
token: process.env.PUSHOVER_TOKEN, token: process.env.PUSHOVER_TOKEN,
user: process.env.PUSHOVER_USER user: process.env.PUSHOVER_USER
+1 -1
View File
@@ -32,7 +32,7 @@ export function sendNotification(cartUrl: string) {
sendPushoverNotification(cartUrl); sendPushoverNotification(cartUrl);
} }
if (notifications.playSound === 'true') { if (notifications.playSound) {
playSound(); playSound();
} }
} }