Skip to content

Commit 28bd4ac

Browse files
authored
fix(client): duplicate challengeFile declaration in editor (freeCodeCamp#61371)
1 parent 92b6ca5 commit 28bd4ac

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

client/src/templates/Challenges/classic/editor.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1317,9 +1317,6 @@ const Editor = (props: EditorProps): JSX.Element => {
13171317
return challengeIsComplete();
13181318
};
13191319

1320-
const challengeFile = props.challengeFiles?.find(
1321-
challengeFile => challengeFile.fileKey === props.fileKey
1322-
);
13231320
const showFileName = challengeFile && props.challengeFiles!.length > 1;
13241321
return (
13251322
<Suspense fallback={<Loader loaderDelay={600} />}>

0 commit comments

Comments
 (0)