This commit is contained in:
parent
209c2e0a70
commit
e02aa76b9a
@ -79,7 +79,7 @@ const Forms = () => {
|
|||||||
const response = await listFormsByTokenApi(cookies.token, formId);
|
const response = await listFormsByTokenApi(cookies.token, formId);
|
||||||
|
|
||||||
if (response.status === 200 && response.data.tokens) {
|
if (response.status === 200 && response.data.tokens) {
|
||||||
navigator.clipboard.writeText(`http://localhost:3000/forms/${response.data.tokens[0].id}/`)
|
navigator.clipboard.writeText(`${window.location.host}/forms/${response.data.tokens[0].id}/`)
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
console.log(response)
|
console.log(response)
|
||||||
|
Loading…
Reference in New Issue
Block a user