Skip to content

Commit

Permalink
fix: empty array
Browse files Browse the repository at this point in the history
  • Loading branch information
isordo committed Oct 27, 2023
1 parent 969712d commit 8abfd79
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ export class WalletConnectCommunicationClient extends CommunicationClient {
let session = this.getSession()
let publicKey: string | undefined

if (!session.sessionProperties) {
if (!session.namespaces.tezos.accounts?.length) {
const fun = this.eventHandlers.get(ClientEvents.WC_ACK_NOTIFICATION)
fun && fun()
this.requestAccountNamespacePromise = new ExposedPromise()
Expand Down Expand Up @@ -427,7 +427,7 @@ export class WalletConnectCommunicationClient extends CommunicationClient {
try {
let session = await this.openSession(topic)

if (!session.sessionProperties) {
if (!session.namespaces.tezos.accounts?.length) {
const fun = this.eventHandlers.get(ClientEvents.WC_ACK_NOTIFICATION)
fun && fun()
this.requestAccountNamespacePromise = new ExposedPromise()
Expand Down

0 comments on commit 8abfd79

Please sign in to comment.