From f5b10caefc2c3313dd0532a0a3488bd27cf5c463 Mon Sep 17 00:00:00 2001 From: TsukemonoGit <102149418+TsukemonoGit@users.noreply.github.com> Date: Thu, 6 Jun 2024 17:29:30 +0900 Subject: [PATCH] fix njump link --- entrypoints/components/CopyButton.tsx | 8 +++++--- package.json | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/entrypoints/components/CopyButton.tsx b/entrypoints/components/CopyButton.tsx index 5b5f124..c6457e7 100644 --- a/entrypoints/components/CopyButton.tsx +++ b/entrypoints/components/CopyButton.tsx @@ -70,13 +70,15 @@ export default function CopyButton({ }, 2000); }); }; - const href = createMemo(() => { + const href = createMemo((): string => { if (text) { if (typeof text === "string") { return text; } else { return text(); } + } else { + return ""; } }); @@ -104,10 +106,10 @@ export default function CopyButton({ <>{copiedIcon} - +