diff --git a/components/lib/password/Password.js b/components/lib/password/Password.js index 618678c300..5c6d3d4e1b 100644 --- a/components/lib/password/Password.js +++ b/components/lib/password/Password.js @@ -279,15 +279,15 @@ export const Password = React.memo( const showIconProps = mergeProps(ptm('showIcon')); if (unmaskedState) { - icon = props.hideIcon || ; + icon = props.hideIcon || ; } else { - icon = props.showIcon || ; + icon = props.showIcon || ; } const eyeIcon = IconUtils.getJSXIcon(icon, unmaskedState ? { ...hideIconProps } : { ...showIconProps }, { props }); if (props.toggleMask) { - let content = {eyeIcon} ; + let content = eyeIcon; if (props.icon) { const defaultIconOptions = {