diff --git a/packages/wallet/frontend/src/components/WalletAddressesTable.tsx b/packages/wallet/frontend/src/components/WalletAddressesTable.tsx index 0222363ee..7c374de96 100644 --- a/packages/wallet/frontend/src/components/WalletAddressesTable.tsx +++ b/packages/wallet/frontend/src/components/WalletAddressesTable.tsx @@ -101,6 +101,13 @@ export const CopyWalletAddress = () => { const { walletAddress } = useContext(WalletAddressRowContext) const [isCopied, setIsCopied] = useState(false) + let pointer = walletAddress.url + + if (walletAddress.isCard) { + const url = new URL(walletAddress.url) + pointer = `$ilp.dev${url.pathname}` + } + useEffect(() => { setTimeout(() => { setIsCopied(false) @@ -114,11 +121,11 @@ export const CopyWalletAddress = () => { onClick={(e) => { e.preventDefault() setIsCopied(true) - copyToClipboard(walletAddress.url) + copyToClipboard(pointer) }} >
- {walletAddress.url} + {pointer}