fix(phone/notifications): Fixed error when setting for app is not defined

This commit is contained in:
Taso committed 2021-03-17 13:55:45 -04:00
1 parent 279778e4f3
commit 06137d77ad
1 file changed
+1 -1
+1 -1
View File
@@ -17,7 +17,7 @@ export const getSoundSettings = (
try {
return app
? {
sound: getPath[type](settings[`${app}_${type}`].value || settings[type].value),
sound: getPath[type](settings[`${app}_${type}`]?.value || settings[type].value),
volume: (settings[`${app}_${type}Vol`] || settings[`${type}Vol`]) / 100,
}
: {