fix: throw sound into local storage (#46123)

This commit is contained in:
Naomi Carrigan
2022-05-23 10:29:54 -07:00
committed by GitHub
parent 359b823247
commit ef841bdfb0

View File

@@ -7,6 +7,7 @@ import {
takeEvery,
debounce
} from 'redux-saga/effects';
import store from 'store';
import { createFlashMessage } from '../../components/Flash/redux';
import {
@@ -106,6 +107,7 @@ function* updateMySocialsSaga({ payload: update }) {
function* updateMySoundSaga({ payload: update }) {
try {
store.set('fcc-sound', !!update.sound);
const response = yield call(putUpdateMySound, update);
yield put(updateMySoundComplete({ ...response, payload: update }));
yield put(createFlashMessage({ ...response }));