From 2b41bed16c2dd307c7f80de09c2c6fbcdaab9aab Mon Sep 17 00:00:00 2001 From: "Sakamoto, Kazunori" Date: Fri, 3 Jan 2025 09:22:57 +0900 Subject: [PATCH] fix: ignore order of turtle elements --- .../lectures/[lectureId]/problems/[problemId]/BoardEditor.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/(withAuth)/courses/[courseId]/lectures/[lectureId]/problems/[problemId]/BoardEditor.tsx b/src/app/(withAuth)/courses/[courseId]/lectures/[lectureId]/problems/[problemId]/BoardEditor.tsx index 1fb741c8..8a169567 100644 --- a/src/app/(withAuth)/courses/[courseId]/lectures/[lectureId]/problems/[problemId]/BoardEditor.tsx +++ b/src/app/(withAuth)/courses/[courseId]/lectures/[lectureId]/problems/[problemId]/BoardEditor.tsx @@ -104,7 +104,7 @@ export const BoardEditor = forwardRef const findIncorrectLocationsAndHintText = (): [string[], string] => { const locations: string[] = []; let hintText = ''; - if (!fastDeepEqual(currentTraceItem.turtles, turtles)) { + if (!fastDeepEqual(new Set(currentTraceItem.turtles), new Set(turtles))) { locations.push('δΊ€'); } if (!fastDeepEqual(parseBoard(currentTraceItem.board), board)) {