Skip to content
This repository has been archived by the owner on Oct 5, 2022. It is now read-only.

Commit

Permalink
Fix tx sync cache not being cleared when recovering wallet
Browse files Browse the repository at this point in the history
Closes #83
  • Loading branch information
Pablo Enrici committed Dec 9, 2019
1 parent 81b628e commit 20a2771
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/client/platform-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}

Expand Down

0 comments on commit 20a2771

Please sign in to comment.