Skip to content

Commit

Permalink
πŸ› Fix issue with duplicate logins
Browse files Browse the repository at this point in the history
  • Loading branch information
AuroraHuang22 authored and williamchong committed Jul 10, 2024
1 parent 91527b9 commit 958445a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pages/nft-book-store.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,12 @@ watch(isLoading, (newIsLoading) => {
if (newIsLoading) { error.value = '' }
})
onMounted(async () => {
onMounted(() => {
try {
const payload = window.localStorage.getItem('likecoin_nft_book_press_token')
if (payload) {
const { wallet: storedWallet, token } = JSON.parse(payload)
restoreSession(storedWallet, token)
await connect()
}
} catch {}
})
Expand Down

0 comments on commit 958445a

Please sign in to comment.