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