mirror of
https://github.com/opelly27/streetmerchant.git
synced 2026-05-20 05:17:35 +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 ?? '',
|
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
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ export function sendNotification(cartUrl: string) {
|
|||||||
sendPushoverNotification(cartUrl);
|
sendPushoverNotification(cartUrl);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (notifications.playSound === 'true') {
|
if (notifications.playSound) {
|
||||||
playSound();
|
playSound();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user