fix(settings): Clear support state when clearing cache

This commit is contained in:
hack.ily 2019-10-30 00:51:41 -07:00 committed by Sean Yesmunt
parent b74b69dc57
commit fbf184a238

View file

@ -19,6 +19,7 @@ import {
doClearPublish, doClearPublish,
doPreferenceGet, doPreferenceGet,
doToast, doToast,
doClearSupport,
} from 'lbry-redux'; } from 'lbry-redux';
import Native from 'native'; import Native from 'native';
import { doFetchDaemonSettings } from 'redux/actions/settings'; import { doFetchDaemonSettings } from 'redux/actions/settings';
@ -339,6 +340,7 @@ export function doClearCache() {
// const reducersToClear = whiteListedReducers.filter(reducerKey => reducerKey !== 'tags'); // const reducersToClear = whiteListedReducers.filter(reducerKey => reducerKey !== 'tags');
// window.cacheStore.purge(reducersToClear); // window.cacheStore.purge(reducersToClear);
window.localStorage.clear(); window.localStorage.clear();
dispatch(doClearSupport());
return dispatch(doClearPublish()); return dispatch(doClearPublish());
}; };
} }