diff --git a/packages/next-safe-action/src/adapters/yup.ts b/packages/next-safe-action/src/adapters/yup.ts index edb3dee1..d9ef096b 100644 --- a/packages/next-safe-action/src/adapters/yup.ts +++ b/packages/next-safe-action/src/adapters/yup.ts @@ -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;