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:
parent
499285266f
commit
ae8f0f176a
@ -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 (
|
||||
|
Loading…
x
Reference in New Issue
Block a user