diff --git a/src/components/ReportActionItem/MoneyRequestView.tsx b/src/components/ReportActionItem/MoneyRequestView.tsx index 349044d934c4..7ee3d9894d2d 100644 --- a/src/components/ReportActionItem/MoneyRequestView.tsx +++ b/src/components/ReportActionItem/MoneyRequestView.tsx @@ -412,22 +412,24 @@ function MoneyRequestView({ )} {shouldShowBillable && ( - <> - + + {translate('common.billable')} - - {getErrorForField('billable') && ( + {!!getErrorForField('billable') && ( )} - + + )} ; textStyle?: StyleProp}; + +export default function ViolationMessages({violations, isLast, containerStyle, textStyle}: ViolationMessagesProps) { const styles = useThemeStyles(); const {translate} = useLocalize(); const violationMessages = useMemo(() => violations.map((violation) => [violation.name, ViolationsUtils.getViolationTranslation(violation, translate)]), [translate, violations]); return ( - + {violationMessages.map(([name, message]) => ( {message}