diff --git a/packages/nextjs/components/scaffold-eth/Input/AddressInput.tsx b/packages/nextjs/components/scaffold-eth/Input/AddressInput.tsx index 4058611..a3cfde5 100644 --- a/packages/nextjs/components/scaffold-eth/Input/AddressInput.tsx +++ b/packages/nextjs/components/scaffold-eth/Input/AddressInput.tsx @@ -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);