Skip to content

Commit

Permalink
conditional errors
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenGrider committed Apr 20, 2017
1 parent e8c09b6 commit 0bf04da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blog/src/components/posts_new.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class PostsNew extends Component {
type="text"
{...field.input}
/>
{field.meta.error}
{field.meta.touched ? field.meta.error : ''}
</div>
);
}
Expand Down

0 comments on commit 0bf04da

Please sign in to comment.