|
|
|
@ -18,7 +18,7 @@ const InvitationLink = ({
|
|
|
|
const selector = useRef(`invite-link-${randomString(4)}`)
|
|
|
|
const selector = useRef(`invite-link-${randomString(4)}`)
|
|
|
|
|
|
|
|
|
|
|
|
const copyHandle = useCallback(() => {
|
|
|
|
const copyHandle = useCallback(() => {
|
|
|
|
//No prefix is needed here because the backend has already processed it
|
|
|
|
// No prefix is needed here because the backend has already processed it
|
|
|
|
copy(`${!value.url.startsWith('http') ? window.location.origin : ''}${value.url}`)
|
|
|
|
copy(`${!value.url.startsWith('http') ? window.location.origin : ''}${value.url}`)
|
|
|
|
setIsCopied(true)
|
|
|
|
setIsCopied(true)
|
|
|
|
}, [value])
|
|
|
|
}, [value])
|
|
|
|
|