diff --git a/src/components/ExceededCommentLength.tsx b/src/components/ExceededCommentLength.tsx index dddb084b0d18..6cd11cc44a5c 100644 --- a/src/components/ExceededCommentLength.tsx +++ b/src/components/ExceededCommentLength.tsx @@ -4,19 +4,10 @@ import useThemeStyles from '@hooks/useThemeStyles'; import CONST from '@src/CONST'; import Text from './Text'; -type ExceededCommentLengthProps = { - /** Show error when comment length is exceeded */ - shouldShowError: boolean; -}; - -function ExceededCommentLength({shouldShowError}: ExceededCommentLengthProps) { +function ExceededCommentLength() { const styles = useThemeStyles(); const {numberFormat, translate} = useLocalize(); - if (!shouldShowError) { - return null; - } - return ( {!isSmallScreenWidth && } - + {hasExceededMaxCommentLength && } diff --git a/src/pages/home/report/ReportActionItemMessageEdit.js b/src/pages/home/report/ReportActionItemMessageEdit.js index 3da0fad72f0a..f8a5fa282c88 100644 --- a/src/pages/home/report/ReportActionItemMessageEdit.js +++ b/src/pages/home/report/ReportActionItemMessageEdit.js @@ -475,7 +475,7 @@ function ReportActionItemMessageEdit(props) { - + {hasExceededMaxCommentLength && } ); }