File tree 2 files changed +2
-2
lines changed
packages/next-safe-action/src
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ export const createSafeActionClient = <Context>(createOpts?: SafeClientOpts<Cont
70
70
serverCode : ServerCodeFn < S , Data , Context >
71
71
) : SafeAction < S , Data > => {
72
72
// This is the function called by client. If `input` fails the schema
73
- // parsing, the function will return a `validationError ` object, containing
73
+ // parsing, the function will return a `validationErrors ` object, containing
74
74
// all the invalid fields provided.
75
75
return async ( clientInput ) => {
76
76
try {
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ export default function Login() {
100
100
const res = await loginUser ({ username: " johndoe" , password: " 123456" });
101
101
102
102
// Result keys.
103
- const { data, validationError , serverError } = res ;
103
+ const { data, validationErrors , serverError } = res ;
104
104
}} >
105
105
Log in
106
106
</button >
You can’t perform that action at this time.
0 commit comments