Skip to content

Commit

Permalink
fix: ignore order of turtle elements
Browse files Browse the repository at this point in the history
  • Loading branch information
exKAZUu committed Jan 3, 2025
1 parent e87e63d commit 2b41bed
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export const BoardEditor = forwardRef<TurtleGraphicsHandle, TurtleGraphicsProps>
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)) {
Expand Down

0 comments on commit 2b41bed

Please sign in to comment.