Skip to content

Commit

Permalink
fix: message undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaccoSordo committed Jan 20, 2025
1 parent f2e9c39 commit e5966dc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,7 @@ export class WalletConnectCommunicationClient extends CommunicationClient {
signClient.core.relayer.provider.on('error', (event: Error) => {
logger.error('subscribeToSessionEvents', event)

if (event.message.includes('JWT validation error')) {
if (event.message?.includes('JWT validation error')) {
const fun = this.eventHandlers.get(ClientEvents.RESET_STATE)
fun && fun(TransportType.WALLETCONNECT)
}
Expand Down

0 comments on commit e5966dc

Please sign in to comment.