From 17cfdc31958456ee7ae1013e303995fc4514a523 Mon Sep 17 00:00:00 2001 From: shimarisu_121 <73901165+kawana77b@users.noreply.github.com> Date: Mon, 13 Nov 2023 23:16:41 +0900 Subject: [PATCH] fix: Suppress multiple requests to OpenAI after clicking the ExportButton --- app/page.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/app/page.tsx b/app/page.tsx index 5fdb7f9..d060650 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -99,6 +99,7 @@ function ExportButton({ setHtml }: { setHtml: (html: string) => void }) { }} className="fixed bottom-4 right-4 bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded =" style={{ zIndex: 1000 }} + disabled={loading} > {loading ? (