Skip to content

Commit

Permalink
address code review
Browse files Browse the repository at this point in the history
  • Loading branch information
vladutjs committed Dec 13, 2023
1 parent 8a2fbf1 commit 89be189
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/link/internal/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ export const createBaseLink = <TRouter extends AnyRouter>(
if (id !== trpc.id) return;

if ('error' in trpc) {
const error = trpc.error;
observer.error(TRPCClientError.from({ ...trpc, error }));
observer.error(TRPCClientError.from(trpc));
return;
}

Expand Down

0 comments on commit 89be189

Please sign in to comment.