Fix: Notification settings not affecting playSound

This commit is contained in:
Paul
2021-06-24 22:06:30 +01:00
parent b833f0cc31
commit fa3f756ae7
2 changed files with 2 additions and 2 deletions

View File

@@ -25,7 +25,7 @@ interface Props {
function Settings({ settings, children }: Props) {
const play = useMemo(() => {
const enabled: SoundOptions = defaultsDeep(settings.notification ?? {}, DEFAULT_SOUNDS);
const enabled: SoundOptions = defaultsDeep(settings.notification?.sounds ?? {}, DEFAULT_SOUNDS);
return (sound: Sounds) => {
if (enabled[sound]) {
playSound(sound);