Skip to content

Commit

Permalink
fix(notification): wrong condition for sounds playing (#91)
Browse files Browse the repository at this point in the history
Co-authored-by: Jef LeCompte <jeffreylec@gmail.com>
  • Loading branch information
Doridian and jef committed Sep 20, 2020
1 parent df5ba68 commit 103d96d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/config.ts
Expand Up @@ -21,7 +21,7 @@ const notifications = {
carrier: process.env.PHONE_CARRIER ?? '',
number: process.env.PHONE_NUMBER ?? ''
},
playSound: process.env.PLAY_SOUND ?? 'false',
playSound: process.env.PLAY_SOUND ?? '',
pushover: {
token: process.env.PUSHOVER_TOKEN,
user: process.env.PUSHOVER_USER
Expand Down
2 changes: 1 addition & 1 deletion src/notification/notification.ts
Expand Up @@ -32,7 +32,7 @@ export function sendNotification(cartUrl: string) {
sendPushoverNotification(cartUrl);
}

if (notifications.playSound === 'true') {
if (notifications.playSound) {
playSound();
}
}

0 comments on commit 103d96d

Please sign in to comment.