From ab702edb4b9f68043005d8d3dabaf64f8e760340 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Fri, 30 Jun 2023 23:04:36 -0700 Subject: [PATCH] Don't show when there is no icon --- components/common/Select/index.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/components/common/Select/index.tsx b/components/common/Select/index.tsx index 5e41a1d0..faa178c5 100644 --- a/components/common/Select/index.tsx +++ b/components/common/Select/index.tsx @@ -100,14 +100,12 @@ const Select = React.forwardRef(function select( placeholder={props.placeholder} ref={forwardedRef} > - {props.icon ? {props.icon.alt} : ''} + {props.icon?.src && {props.icon.alt}} - {!props.disabled ? ( + {!props.disabled && ( - ) : ( - '' )}