Skip to content

Commit

Permalink
Fixed the TS error
Browse files Browse the repository at this point in the history
  • Loading branch information
vmatsiiako committed Dec 26, 2022
1 parent c556072 commit 676f340
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/pages/dashboard/[id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 676f340

Please sign in to comment.