Skip to content

Commit

Permalink
undefined check
Browse files Browse the repository at this point in the history
  • Loading branch information
CryptoGraffe committed Nov 2, 2023
1 parent 9f17ecf commit 92db4b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/api/zeus/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,

Check failure on line 22 in src/app/api/zeus/index.ts

View workflow job for this annotation

GitHub Actions / build-test

Argument of type 'HeadersInit' is not assignable to parameter of type 'HeadersInit | undefined'.

Check failure on line 22 in src/app/api/zeus/index.ts

View workflow job for this annotation

GitHub Actions / build-test

Argument of type 'HeadersInit' is not assignable to parameter of type 'HeadersInit | undefined'.
});

const ws = new Proxy(
Expand Down

0 comments on commit 92db4b0

Please sign in to comment.