mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-01-19 05:45:15 +01:00
Update CopyTextToClipboard.tsx
This commit is contained in:
parent
c3988f29fa
commit
7699b05137
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user