Skip to content

Commit

Permalink
fix(validation): yup validation errors paths
Browse files Browse the repository at this point in the history
  • Loading branch information
TheEdoRan committed Jul 19, 2024
1 parent b61c9cd commit 555390f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next-safe-action/src/adapters/yup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class YupAdapter implements ValidationAdapter {
issues: [
{
message,
path: path && path.length > 0 ? path : undefined,
path: path && path.length > 0 ? [path] : undefined,
},
] as ValidationIssue[],
} as const;
Expand Down

0 comments on commit 555390f

Please sign in to comment.