Skip to content

Commit

Permalink
save selected wallet id into new storage if it is loaded from old sto…
Browse files Browse the repository at this point in the history
…rage
  • Loading branch information
yushih committed Nov 21, 2024
1 parent 12b98f8 commit 5978c01
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/yoroi-extension/app/api/localStorage/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ export default class LocalStorageApi {
// previously it was stored in window.localStorage, which is not accessible in the mv3 service worker
if (!id) {
id = window?.localStorage.getItem(storageKeys.SELECTED_WALLET);
if (/^\d+$/.test(id)) {
await this.setSelectedWalletId(Number(id));
}
}
if (!id) {
return null;
Expand Down

0 comments on commit 5978c01

Please sign in to comment.