fix: handle missing sound saga payloads (#45645)
This commit is contained in:
committed by
GitHub
parent
4f3b131a4b
commit
1d87c3c4f2
@ -9,7 +9,8 @@ export function setSound(setting) {
|
|||||||
store.set(soundKey, setting);
|
store.set(soundKey, setting);
|
||||||
}
|
}
|
||||||
|
|
||||||
function* updateLocalSoundSaga({ payload: { user, sound } }) {
|
function* updateLocalSoundSaga({ payload }) {
|
||||||
|
const { user, sound } = payload ?? {};
|
||||||
if (user) {
|
if (user) {
|
||||||
const { sound = false } = user;
|
const { sound = false } = user;
|
||||||
setSound(sound);
|
setSound(sound);
|
||||||
|
Reference in New Issue
Block a user