Skip to content

Commit

Permalink
Merge pull request #4939 from EdgeApp/sam/swap-next-button
Browse files Browse the repository at this point in the history
Propagate clear press event as a change event for FlipInput2
  • Loading branch information
samholmes authored Mar 29, 2024
2 parents 576fe60 + b3976f9 commit 4ea4f4a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/themed/FlipInput2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,7 @@ export const FlipInput2 = React.forwardRef<FlipInputRef, Props>((props: Props, r
})

const handleClearPress = useHandler(() => {
const newAmounts: [string, string] = ['', '']
setAmounts(newAmounts)
onNumericInputChange('')
})

const renderBottomRow = (fieldNum: FieldNum) => {
Expand Down

0 comments on commit 4ea4f4a

Please sign in to comment.