From 20a2771785e8211895919c1df9979cf648aa3673 Mon Sep 17 00:00:00 2001 From: Pablo Enrici Date: Tue, 3 Dec 2019 13:58:07 -0300 Subject: [PATCH] Fix tx sync cache not being cleared when recovering wallet Closes #83 --- src/client/platform-utils.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/client/platform-utils.js b/src/client/platform-utils.js index 2fa15e9..1b2d043 100644 --- a/src/client/platform-utils.js +++ b/src/client/platform-utils.js @@ -22,7 +22,14 @@ export const onHelpLinkClick = () => ) export const clearCache = () => { - const keys = ['chains', 'config', 'connectivity', 'session', 'sync'] + const keys = [ + 'connectivity', + 'session', + 'chains', + 'config', + 'sync', + ...config.enabledChains.map(chainName => `sync-${chainName}`) + ] return AsyncStorage.multiRemove(keys).then(() => RNRestart.Restart()) }