1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

Fixing wrong link copied for profiles with ens names

This commit is contained in:
Jamie Hewitt 2023-01-05 15:06:50 +00:00
parent 499285266f
commit ae8f0f176a

View File

@ -11,7 +11,9 @@ export default function Share({
accountId: string
}): ReactElement {
function copyLink() {
navigator.clipboard.writeText(window.location.href + '/' + accountId)
navigator.clipboard.writeText(
window.location.origin + '/profile/' + accountId
)
toast.success('Profile link copied to clipboard')
}
return (