From e03e5f3b9c91faaa96a645fc4bd0d9adcd97a266 Mon Sep 17 00:00:00 2001 From: Harshith Mohan Date: Tue, 30 Jan 2024 12:07:44 +0530 Subject: [PATCH] Copy api key instead of device name (#805) --- src/pages/settings/tabs/ApiKeys.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/settings/tabs/ApiKeys.tsx b/src/pages/settings/tabs/ApiKeys.tsx index 2fabffb13..efb64a978 100644 --- a/src/pages/settings/tabs/ApiKeys.tsx +++ b/src/pages/settings/tabs/ApiKeys.tsx @@ -54,7 +54,7 @@ const ApiKeys = () => { const handleCopyToClipboard = useEventCallback(() => { if (!isTokenGenerated) return; - copy(deviceName).then((isCopied) => { + copy(createdToken).then((isCopied) => { if (!isCopied) return; toast.success('Copied', 'API Key has been copied to clipboard!', { autoClose: 3000,