chore: refactor client sdk tests
This commit is contained in:
@ -93,6 +93,7 @@ export class Client extends EventTarget {
|
||||
const { jsonrpc, id, error, result } = evt.detail;
|
||||
|
||||
if (jsonrpc !== '2.0' || id === undefined) return;
|
||||
if (!evt.detail.hasOwnProperty("error") && !evt.detail.hasOwnProperty("result")) return;
|
||||
|
||||
// Prevent additional handlers to catch this event
|
||||
evt.stopImmediatePropagation();
|
||||
|
Reference in New Issue
Block a user