From 06137d77add669bcce85c218a58e16ee1aa13a3e Mon Sep 17 00:00:00 2001 From: Taso Date: Wed, 17 Mar 2021 13:55:45 -0400 Subject: [PATCH] fix(phone/notifications): Fixed error when setting for app is not defined --- phone/src/os/sound/utils/getSoundSettings.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phone/src/os/sound/utils/getSoundSettings.ts b/phone/src/os/sound/utils/getSoundSettings.ts index 0da0c8b..934ef65 100644 --- a/phone/src/os/sound/utils/getSoundSettings.ts +++ b/phone/src/os/sound/utils/getSoundSettings.ts @@ -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, } : {