Skip to content

Commit

Permalink
fix: apply correctly rpc router env
Browse files Browse the repository at this point in the history
  • Loading branch information
yannbcf committed Jun 14, 2023
1 parent 43441d4 commit b787775
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/initContractRouter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export function initContractRouter<

// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
const _args = parser ? parser.safeParse(args[opts.env === "server" ? 1 : 0]).data ?? undefined : args ?? {};
const _args = parser ? parser.safeParse(args[env === "server" ? 1 : 0]).data ?? undefined : args ?? {};
if (parser && _args === undefined) {
console.warn("FAILED TO PARSE");
return;
Expand Down

0 comments on commit b787775

Please sign in to comment.