From 92db4b01db870b5ddd4f8c6c81f5e43bb9cdc092 Mon Sep 17 00:00:00 2001 From: CryptoGraffe Date: Wed, 1 Nov 2023 23:01:25 -0700 Subject: [PATCH] undefined check --- src/app/api/zeus/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/api/zeus/index.ts b/src/app/api/zeus/index.ts index 6087b97..d12329f 100644 --- a/src/app/api/zeus/index.ts +++ b/src/app/api/zeus/index.ts @@ -18,7 +18,8 @@ export const apiSubscription = (options: chainOptions) => { // const headers : HeadersInit = passedHeaders ? passedHeaders : empty; const client = createClient({ url: String(options[0]), - connectionParams: h ? Object.fromEntries(new Headers(h).entries()) : undefined, + + connectionParams: h !== undefined ? Object.fromEntries(new Headers(h).entries()) : undefined, }); const ws = new Proxy(