diff --git a/src/components/install-commands.tsx b/src/components/install-commands.tsx index 679e6eb..b3c3c41 100644 --- a/src/components/install-commands.tsx +++ b/src/components/install-commands.tsx @@ -28,8 +28,8 @@ export const InstallCommandsMenu = forwardRef((p if (!copy) { try { setCopy(true); - if (settings) - await navigator.clipboard.writeText(generateCommand(type, settings)); + if (config) + await navigator.clipboard.writeText(generateCommand(type, settings) || ''); } catch (e) { console.error(e); toast(t("Error"), {