Skip to content

Commit

Permalink
upgrade to latest vite-web-wallet && fix some bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
osdio committed Jun 4, 2021
1 parent 62980b3 commit 2734edd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions walletSrc/modules/localStorage.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,14 @@ function getItem(name) {

function getValue(key) {
if (settingsKeys.indexOf(key) > -1) {
return global.settingsStore.get(`webWallet.${key}`);
return global.settingsStore.get(`webWallet.${global.settingsStore.get('net')}.${key}`);
}
return global.walletStore.get(key);
}

function setValue(key, value) {
if (settingsKeys.indexOf(key) > -1) {
return global.settingsStore.set(`webWallet.${key}`, value);
return global.settingsStore.set(`webWallet.${global.settingsStore.get('net')}.${key}`, value);
}
return global.walletStore.set(key, value);
}
Expand Down

0 comments on commit 2734edd

Please sign in to comment.