From 3be16274dae1f429ef5f5241a12a77e8093e5c76 Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Mon, 13 May 2024 12:47:22 +0530 Subject: [PATCH] fix: copy to clipboard fix --- frontend/src/utils/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/utils/index.js b/frontend/src/utils/index.js index 77065a49..5ba49e78 100644 --- a/frontend/src/utils/index.js +++ b/frontend/src/utils/index.js @@ -150,7 +150,7 @@ export function errorMessage(title, message) { export function copyToClipboard(text) { if (navigator.clipboard && window.isSecureContext) { - navigator.clipboard.writeText(string).then(show_success_alert) + navigator.clipboard.writeText(text).then(show_success_alert) } else { let input = document.createElement('textarea') document.body.appendChild(input)