diff --git a/packages/twenty-front/src/modules/ui/input/components/InputErrorHelper.tsx b/packages/twenty-front/src/modules/ui/input/components/InputErrorHelper.tsx index 2f15b31a7..1a8a38f0e 100644 --- a/packages/twenty-front/src/modules/ui/input/components/InputErrorHelper.tsx +++ b/packages/twenty-front/src/modules/ui/input/components/InputErrorHelper.tsx @@ -1,5 +1,5 @@ -import React from 'react'; import styled from '@emotion/styled'; +import React from 'react'; const StyledInputErrorHelper = styled.div` color: ${({ theme }) => theme.color.red}; @@ -13,13 +13,11 @@ const StyledErrorContainer = styled.div` export const InputErrorHelper = ({ children, - isVisible = true, }: { children?: React.ReactNode; - isVisible?: boolean; }) => ( - {children && isVisible && ( + {children && ( {children} diff --git a/packages/twenty-front/src/modules/ui/input/components/TextInputV2.tsx b/packages/twenty-front/src/modules/ui/input/components/TextInputV2.tsx index 19bb2273d..a152959e0 100644 --- a/packages/twenty-front/src/modules/ui/input/components/TextInputV2.tsx +++ b/packages/twenty-front/src/modules/ui/input/components/TextInputV2.tsx @@ -357,7 +357,9 @@ const TextInputV2Component = forwardRef< )} - {error} + {!noErrorHelper && error && ( + {error} + )} ); },