Skip to content

Commit 51d3447

Browse files
authored
Merge pull request #131 from scientist-softserv/proptypes-change
Change proptype of errortext since it is now always an array
2 parents cb1c0dd + d610565 commit 51d3447

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Error/Error.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const Error = ({ errors, showBackButton, canDismissAlert, router }) => {
3636
Error.propTypes = {
3737
canDismissAlert: PropTypes.bool,
3838
errors: PropTypes.shape({
39-
errorText: PropTypes.string.isRequired,
39+
errorText: PropTypes.arrayOf(PropTypes.string).isRequired,
4040
errorTitle: PropTypes.string,
4141
variant: PropTypes.string.isRequired,
4242
}).isRequired,

0 commit comments

Comments
 (0)