Skip to content

Commit

Permalink
Fix: open wallet dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
aopoltorzhicky committed Jul 17, 2023
1 parent aabe121 commit 692db05
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/components/schema/Schema.vue
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,8 @@ export default {
async checkWalletNetwork() {
const account = Wallet.getLastUsedAccount();
const isNetwork = !isCustom(account.network.type) &&
const isNetwork = account &&
!isCustom(account.network.type) &&
account.network.type !== this.selectedNetwork
if(account && isNetwork) {
Expand Down
1 change: 0 additions & 1 deletion src/utils/wallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ export class Wallet {
peers = [...peers, ...JSON.parse(postmessagePeersDapp)]
}


if(!accounts) return null
const parsedAccounts = JSON.parse(accounts);
const connectionTimes = parsedAccounts.map(item => item.connectedAt);
Expand Down

0 comments on commit 692db05

Please sign in to comment.