From eca99201b39c9189eeccba15dc119d3a21aa6b7a Mon Sep 17 00:00:00 2001 From: UUBulb <35923940+uubulb@users.noreply.github.com> Date: Sat, 30 Nov 2024 15:18:41 +0800 Subject: [PATCH] fix: wrong variable name (#12) --- src/components/install-commands.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/install-commands.tsx b/src/components/install-commands.tsx index b3c3c41..5b77e6c 100644 --- a/src/components/install-commands.tsx +++ b/src/components/install-commands.tsx @@ -28,7 +28,7 @@ export const InstallCommandsMenu = forwardRef((p if (!copy) { try { setCopy(true); - if (config) + if (settings) await navigator.clipboard.writeText(generateCommand(type, settings) || ''); } catch (e) { console.error(e);