From 7554fe01ef2620a32691622e42f49bd123ed2635 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Fri, 4 Oct 2019 13:29:57 -0400 Subject: [PATCH] only reset publish when clearing cache --- src/ui/redux/actions/app.js | 5 +++-- static/app-strings.json | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/ui/redux/actions/app.js b/src/ui/redux/actions/app.js index 6b6b87c70..43d0e904e 100644 --- a/src/ui/redux/actions/app.js +++ b/src/ui/redux/actions/app.js @@ -18,6 +18,7 @@ import { doPopulateSharedUserState, doFetchChannelListMine, selectBalance, + doClearPublish, } from 'lbry-redux'; import Native from 'native'; import { doFetchDaemonSettings } from 'redux/actions/settings'; @@ -347,13 +348,13 @@ export function doDaemonReady() { } export function doClearCache() { - return () => { + return dispatch => { // Need to update this to work with new version of redux-persist // Leaving for now // const reducersToClear = whiteListedReducers.filter(reducerKey => reducerKey !== 'tags'); // window.cacheStore.purge(reducersToClear); window.localStorage.clear(); - return window.persistor.purge(); + return dispatch(doClearPublish()); }; } diff --git a/static/app-strings.json b/static/app-strings.json index 43cd408c9..c224c6987 100644 --- a/static/app-strings.json +++ b/static/app-strings.json @@ -790,5 +790,6 @@ "You can have more than one or change this later.": "You can have more than one or change this later.", "Your Channel": "Your Channel", "channel": "channel", - "Create": "Create" + "Create": "Create", + "You have no rewards available.": "You have no rewards available." } \ No newline at end of file