diff --git a/client/src/utils/solution-display-type.test.ts b/client/src/utils/solution-display-type.test.ts index aeb541fb167..9eed5971a17 100644 --- a/client/src/utils/solution-display-type.test.ts +++ b/client/src/utils/solution-display-type.test.ts @@ -23,7 +23,7 @@ describe('getSolutionDisplayType', () => { 'showMultifileProjectSolution' ); expect(getSolutionDisplayType(multifilePythonSolution)).toBe( - 'showMultifileProjectSolution' + 'showUserCode' ); }); it('should handle solutions with a single valid url', () => { diff --git a/client/src/utils/solution-display-type.ts b/client/src/utils/solution-display-type.ts index c15c123e56c..e84839b0bbd 100644 --- a/client/src/utils/solution-display-type.ts +++ b/client/src/utils/solution-display-type.ts @@ -19,8 +19,7 @@ export const getSolutionDisplayType = ({ }: CompletedChallenge): DisplayType => { if (examResults) return 'showExamResults'; if (challengeFiles?.length) - return challengeType === challengeTypes.multifileCertProject || - challengeType === challengeTypes.multifilePythonCertProject + return challengeType === challengeTypes.multifileCertProject ? 'showMultifileProjectSolution' : 'showUserCode'; if (!solution) return 'none';