Skip to content

Commit

Permalink
fix: isPrototypeOf
Browse files Browse the repository at this point in the history
  • Loading branch information
izatop committed May 21, 2021
1 parent 20b5cad commit 75cf660
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/web/src/Transport/TransformError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export class TransformError {
}

for (const [type, {code, status}] of this.#errorHeadersMap.entries()) {
if (type.isPrototypeOf(this.#error)) {
if (type.isPrototypeOf(this.#error.constructor)) {
return {code, status};
}
}
Expand Down

0 comments on commit 75cf660

Please sign in to comment.