Skip to content

Commit

Permalink
Feedback type is error if nothing is specified, see #2
Browse files Browse the repository at this point in the history
  • Loading branch information
tkrotoff committed Aug 24, 2017
1 parent 7bba5ba commit f33d471
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FormWithConstraints.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ export class FieldFeedbacks extends React.Component<FieldFeedbacksProps, Field>
const addToList = () => {
if (info) field.infos.push(i);
else if (warning) field.warnings.push(i);
else field.errors.push(i);
else field.errors.push(i); // Feedback type is error if nothing is specified
};

if (typeof when === 'function') {
Expand Down

0 comments on commit f33d471

Please sign in to comment.