diff --git a/src/link/internal/base.ts b/src/link/internal/base.ts index e70b4da..90a49c8 100644 --- a/src/link/internal/base.ts +++ b/src/link/internal/base.ts @@ -31,8 +31,7 @@ export const createBaseLink = ( 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; }