From 38d84616ee48053bb2bf081bece50b448938e9bf Mon Sep 17 00:00:00 2001 From: "Jenna (Ju Hee) Han" <62906996+jenna5376@users.noreply.github.com> Date: Wed, 3 Apr 2024 12:16:07 -0400 Subject: [PATCH] fix: removed view project buttons from Python cert projects (#54261) --- client/src/utils/solution-display-type.test.ts | 2 +- client/src/utils/solution-display-type.ts | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) 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';