Skip to content

Commit

Permalink
fix(swap): Reset errors when switch touched (#2858)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljscript authored Oct 31, 2023
1 parent 3a80f82 commit d04690b
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,8 @@ const swapFormReducer = (state: SwapFormState, action: SwapFormAction) => {
case SwapFormActionType.SwitchTouched:
draft.sellQuantity.isTouched = state.buyQuantity.isTouched
draft.buyQuantity.isTouched = state.sellQuantity.isTouched
draft.sellQuantity.error = undefined
draft.buyQuantity.error = undefined

break

Expand Down

0 comments on commit d04690b

Please sign in to comment.