Skip to content

Commit

Permalink
Add missing name in call to setFieldError (#290)
Browse files Browse the repository at this point in the history
  • Loading branch information
LinusU authored and jaredpalmer committed Dec 5, 2017
1 parent 77a777d commit 2783e26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Field.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export class Field<Props extends FieldAttributes = any> extends React.Component<
);
} else {
// Otherwise set the error
setFieldError(maybePromise);
setFieldError(name, maybePromise);
}
};

Expand Down

0 comments on commit 2783e26

Please sign in to comment.