From 7a7ffd034df171e5472b7d50a9789bb4ed7d4606 Mon Sep 17 00:00:00 2001 From: Kwon Seo Jin <97675977+B0XERCAT@users.noreply.github.com> Date: Wed, 20 Nov 2024 15:24:32 +0900 Subject: [PATCH] fix(fe): fix user testcase judging bug (#2220) --- .../_components/EditorHeader/RunTestButton.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/frontend/app/(client)/(code-editor)/_components/EditorHeader/RunTestButton.tsx b/apps/frontend/app/(client)/(code-editor)/_components/EditorHeader/RunTestButton.tsx index 5ac8f52a4..a5c3cf61f 100644 --- a/apps/frontend/app/(client)/(code-editor)/_components/EditorHeader/RunTestButton.tsx +++ b/apps/frontend/app/(client)/(code-editor)/_components/EditorHeader/RunTestButton.tsx @@ -64,7 +64,11 @@ export default function RunTestButton({ locked: false } ], - userTestcases: testcases + userTestcases: testcases.map((testcase) => ({ + id: testcase.id, + in: testcase.input, + out: testcase.output + })) }, searchParams: { problemId