From 5e22c5afebf8a8f1d8479648dacfdcd4244d0718 Mon Sep 17 00:00:00 2001 From: Dylan Jeffers Date: Tue, 31 May 2022 13:26:47 -0700 Subject: [PATCH] Fix runtime includes TypeError --- libs/src/services/creatorNode/CreatorNode.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/src/services/creatorNode/CreatorNode.ts b/libs/src/services/creatorNode/CreatorNode.ts index e28ec6d343d..73d78ce6e9c 100644 --- a/libs/src/services/creatorNode/CreatorNode.ts +++ b/libs/src/services/creatorNode/CreatorNode.ts @@ -828,7 +828,7 @@ export class CreatorNode { } // if the content node returns an invalid auth token error, clear connection and reconnect - if (resp?.data?.error?.includes('Invalid authentication token')) { + if (resp?.data?.error?.includes?.('Invalid authentication token')) { this.clearConnection() try { await this.ensureConnected() @@ -994,7 +994,7 @@ export class CreatorNode { retries - 1 ) } else if ( - error.response?.data?.error?.includes('Invalid authentication token') + error.response?.data?.error?.includes?.('Invalid authentication token') ) { // if the content node returns an invalid auth token error, clear connection and reconnect this.clearConnection()