mirror of
https://github.com/opelly27/streetmerchant.git
synced 2026-05-20 02:57:34 +00:00
fix(notification): wrong condition for sounds playing (#91)
Co-authored-by: Jef LeCompte <jeffreylec@gmail.com>
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
@@ -32,7 +32,7 @@ export function sendNotification(cartUrl: string) {
|
||||
sendPushoverNotification(cartUrl);
|
||||
}
|
||||
|
||||
if (notifications.playSound === 'true') {
|
||||
if (notifications.playSound) {
|
||||
playSound();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user