diff --git a/source/components/conversation/DateInput.tsx b/source/components/conversation/DateInput.tsx index 134f24d96..75f310ae1 100644 --- a/source/components/conversation/DateInput.tsx +++ b/source/components/conversation/DateInput.tsx @@ -6,7 +6,6 @@ import SendButton from './SendButton' export default function DateInput({ suggestions, onChange, onSubmit, value }) { const dateValue = useMemo(() => { - console.log(value) if (!value) return undefined const [day, month, year] = normalizeDateString(value).split('/') return `${year}-${month}-${day}` @@ -14,9 +13,8 @@ export default function DateInput({ suggestions, onChange, onSubmit, value }) { const handleDateChange = useCallback( evt => { - console.log(evt.target.value) if (!evt.target.value) { - return onChange(undefined) + return onChange(null) } const [year, month, day] = evt.target.value.split('-') onChange(`${day}/${month}/${year}`) diff --git a/source/engine/RuleInput.tsx b/source/engine/RuleInput.tsx index 1b85a3c37..67a2baa32 100644 --- a/source/engine/RuleInput.tsx +++ b/source/engine/RuleInput.tsx @@ -98,7 +98,7 @@ export default function InputComponent({ ) } - if (unit?.numerators.includes('€') && isTarget && typeof value === 'number') { + if (unit?.numerators.includes('€') && isTarget) { return ( <>