diff --git a/src/app/pages/receive/receive-btc.tsx b/src/app/pages/receive/receive-btc.tsx index 5ed7a60fef9..002fba70e7e 100644 --- a/src/app/pages/receive/receive-btc.tsx +++ b/src/app/pages/receive/receive-btc.tsx @@ -1,4 +1,3 @@ -import { useCallback } from 'react'; import toast from 'react-hot-toast'; import { useLocation } from 'react-router-dom'; @@ -29,11 +28,11 @@ export function ReceiveBtcModal({ type = 'btc' }: ReceiveBtcModalType) { const { onCopy } = useClipboard(btcAddress); - const copyToClipboard = useCallback(() => { + function copyToClipboard() { void analytics.track('copy_btc_address_to_clipboard'); toast.success('Copied to clipboard!'); onCopy(); - }, [analytics, onCopy]); + } return ( { + function copyToClipboard() { void analytics.track('copy_stx_address_to_clipboard'); - toast.success('Copied to clipboard!'); + toast.success('Copied to clipboard'); onCopy(); - }, [analytics, onCopy]); + } if (!currentAccount) return null;