Update CopyTextToClipboard.tsx

This commit is contained in:
Marcos Rodriguez Vélez 2024-03-27 07:32:51 -04:00 committed by GitHub
parent c3988f29fa
commit 7699b05137
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -21,7 +21,6 @@ const CopyTextToClipboard = forwardRef<TouchableOpacity, CopyTextToClipboardProp
const [hasTappedText, setHasTappedText] = useState(false);
const [address, setAddress] = useState(text);
// Replace `getDerivedStateFromProps`
useEffect(() => {
if (!hasTappedText) {
setAddress(text);