mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-18 10:00:55 -04:00
fix: throw sound into local storage (#46123)
This commit is contained in:
@@ -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 }));
|
||||
|
||||
Reference in New Issue
Block a user