Skip to content

Commit 1e508d2

Browse files
committed
change proptype of errortext since it is now always an array
1 parent 4aaf2dc commit 1e508d2

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.array.isRequired,
4040
errorTitle: PropTypes.string,
4141
variant: PropTypes.string.isRequired,
4242
}).isRequired,

0 commit comments

Comments
 (0)