diff --git a/src/components/expense-form.tsx b/src/components/expense-form.tsx index 6583213a..84fe7c53 100644 --- a/src/components/expense-form.tsx +++ b/src/components/expense-form.tsx @@ -221,7 +221,7 @@ export function ExpenseForm({ ( + render={({ field: { onChange, ...field } }) => ( Amount
@@ -235,9 +235,7 @@ export function ExpenseForm({ step={0.01} placeholder="0.00" onChange={(event) => - field.onChange( - enforceCurrencyPattern(event.target.value), - ) + onChange(enforceCurrencyPattern(event.target.value)) } onClick={(e) => e.currentTarget.select()} {...field}