diff --git a/frontend/pages/dashboard/[id].tsx b/frontend/pages/dashboard/[id].tsx index 3852e44f6..e4b692691 100644 --- a/frontend/pages/dashboard/[id].tsx +++ b/frontend/pages/dashboard/[id].tsx @@ -378,11 +378,11 @@ export default function Dashboard() { * This function copies the project id to the clipboard */ function copyToClipboard() { - const copyText = document.getElementById('myInput'); + const copyText = document.getElementById('myInput') as HTMLInputElement; if (copyText) { copyText.select(); - // copyText.setSelectionRange(0, 99999); // For mobile devices + copyText.setSelectionRange(0, 99999); // For mobile devices navigator.clipboard.writeText(copyText.value);