From b3976f973e0a0935714b87e63de9246febb24c9a Mon Sep 17 00:00:00 2001 From: Samuel Holmes Date: Thu, 28 Mar 2024 16:03:25 -0700 Subject: [PATCH] Propagate clear press event as a change event for FlipInput2 --- src/components/themed/FlipInput2.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/themed/FlipInput2.tsx b/src/components/themed/FlipInput2.tsx index aa0d89484ea..4ce906b0eb4 100644 --- a/src/components/themed/FlipInput2.tsx +++ b/src/components/themed/FlipInput2.tsx @@ -168,8 +168,7 @@ export const FlipInput2 = React.forwardRef((props: Props, r }) const handleClearPress = useHandler(() => { - const newAmounts: [string, string] = ['', ''] - setAmounts(newAmounts) + onNumericInputChange('') }) const renderBottomRow = (fieldNum: FieldNum) => {