From fb717f487cb132fbd744529ef24747b8f4a02d5f Mon Sep 17 00:00:00 2001 From: Javier Romero Castro Date: Thu, 23 Nov 2023 13:18:26 +0100 Subject: [PATCH] ErrorMessage: add icon attribute only when needed * closes https://github.com/zenodo/rdm-project/issues/482 --- src/lib/elements/ErrorMessage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/elements/ErrorMessage.js b/src/lib/elements/ErrorMessage.js index 8dcc531a..d11ababb 100644 --- a/src/lib/elements/ErrorMessage.js +++ b/src/lib/elements/ErrorMessage.js @@ -49,7 +49,7 @@ export class ErrorMessage extends Component { const { header, errors, content, icon, ...uiProps } = this.props; return ( - + {icon && } {header && {header}}