revert change to load last account and bump local storage key version

This commit is contained in:
tjs 2023-03-08 12:53:48 -05:00
parent d421fe856b
commit 55db739d76
2 changed files with 2 additions and 2 deletions

View File

@ -627,7 +627,7 @@ const mangoStore = create<MangoStore>()(
if (typeof lastAccount === 'string') {
try {
lastViewedAccount = mangoAccounts.find(
(m) => m.publicKey.toString() === lastAccount
(m) => m.publicKey.toString() === JSON.parse(lastAccount)
)
} catch (e) {
console.error('Error parsing last account', e)

View File

@ -1,4 +1,4 @@
export const LAST_ACCOUNT_KEY = 'mangoAccount-0.3'
export const LAST_ACCOUNT_KEY = 'mangoAccount-0.4'
export const CLIENT_TX_TIMEOUT = 90000