Skip to content

Commit

Permalink
Fix bug on AddressInput (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
carletex authored Sep 5, 2024
1 parent 0966b07 commit eb9ff28
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ export const AddressInput = ({ value, name, placeholder, disabled, onChange }: A
onChange(ensAddress);
}, [ensAddress, onChange, value]);

useEffect(() => {
setEnteredEnsName(undefined);
}, [value]);

const handleChange = useCallback(
(newValue: Address) => {
setEnteredEnsName(undefined);
Expand Down

0 comments on commit eb9ff28

Please sign in to comment.