Skip to content

Commit bb7258a

Browse files
authored
Looping thru errors
1 parent 2661280 commit bb7258a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/DropNCrop.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,10 +167,7 @@ class DropNCrop extends Component {
167167
key="dropzone-validation"
168168
className="dropzone-validation"
169169
>
170-
<p>{value && value.error[0]}</p>
171-
{value.error[1]
172-
? <p>{value && value.error[1]}</p>
173-
:null}
170+
{value && value.error && value.error.map(error => <p>{error}</p>)}
174171
</div>
175172
: null}
176173
</Dropzone>}

0 commit comments

Comments
 (0)