diff --git a/src/pages/Forms.jsx b/src/pages/Forms.jsx index e3caf63..aeb3d62 100644 --- a/src/pages/Forms.jsx +++ b/src/pages/Forms.jsx @@ -79,7 +79,7 @@ const Forms = () => { const response = await listFormsByTokenApi(cookies.token, formId); 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 { console.log(response)