Skip to content

Commit

Permalink
fix(swap): don't reset swap form on recipient ens input (#3234)
Browse files Browse the repository at this point in the history
  • Loading branch information
shoom3301 authored Oct 17, 2023
1 parent 409e60e commit 9c1f2f1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ export function RecipientAddressUpdater() {

useEffect(() => {
if (state?.recipientAddress !== recipientAddress) {
updateState?.({ recipientAddress })
updateState?.({ ...state, recipientAddress })
}
}, [recipientAddress, state?.recipientAddress, updateState])
}, [recipientAddress, state, updateState])

return null
}

0 comments on commit 9c1f2f1

Please sign in to comment.