diff --git a/src/plugins/webSocketClient.ts b/src/plugins/webSocketClient.ts index fd015816f..1b12adfa7 100644 --- a/src/plugins/webSocketClient.ts +++ b/src/plugins/webSocketClient.ts @@ -71,9 +71,7 @@ export class WebSocketClient { } // resolve promise if it exists - if (wait?.resolve && 'result' in data) { - wait.resolve(data.result) - } + if (wait?.resolve) wait.resolve(data.result ?? {}) // pass result to action if (wait.action) {