Skip to content

Commit

Permalink
TW-1545 Fix auto-lock for newly installed extension
Browse files Browse the repository at this point in the history
  • Loading branch information
keshan3262 committed Sep 30, 2024
1 parent 0fc36bd commit eb719ee
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/lib/local-storage/migrations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,10 @@ migrate([
const rawIsLocked = localStorage.getItem(TempleSharedStorageKey.LockUpEnabled);
localStorage.removeItem(TempleSharedStorageKey.LockUpEnabled);

putToStorage(AUTOLOCK_TIME_STORAGE_KEY, rawIsLocked ? DEFAULT_WALLET_AUTOLOCK_TIME : NEVER_AUTOLOCK_VALUE).catch(
e => console.error(e)
);
putToStorage(
AUTOLOCK_TIME_STORAGE_KEY,
rawIsLocked === 'true' || rawIsLocked === null ? DEFAULT_WALLET_AUTOLOCK_TIME : NEVER_AUTOLOCK_VALUE
).catch(e => console.error(e));
}
}
]);

0 comments on commit eb719ee

Please sign in to comment.