Skip to content

Commit

Permalink
Merge pull request #669 from airgap-it/fix/accounts_check
Browse files Browse the repository at this point in the history
fix: accounts check
  • Loading branch information
AndreasGassmann authored Dec 5, 2023
2 parents 472489e + b425b64 commit cb8d10d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -806,11 +806,11 @@ export class WalletConnectCommunicationClient extends CommunicationClient {

private setDefaultAccountAndNetwork() {
const activeAccount = this.getAccounts()
if (activeAccount.length === 1) {
if (activeAccount.length) {
this.activeAccount = activeAccount[0]
}
const activeNetwork = this.getNetworks()
if (activeNetwork.length === 1) {
if (activeNetwork.length) {
this.activeNetwork = activeNetwork[0]
}
}
Expand Down

0 comments on commit cb8d10d

Please sign in to comment.