Skip to content

Commit

Permalink
Looping thru errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dmmcinty authored Apr 11, 2018
1 parent 2661280 commit bb7258a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/DropNCrop.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,7 @@ class DropNCrop extends Component {
key="dropzone-validation"
className="dropzone-validation"
>
<p>{value && value.error[0]}</p>
{value.error[1]
? <p>{value && value.error[1]}</p>
:null}
{value && value.error && value.error.map(error => <p>{error}</p>)}
</div>
: null}
</Dropzone>}
Expand Down

0 comments on commit bb7258a

Please sign in to comment.