mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-12 19:00:43 -04:00
fix: removed view project buttons from Python cert projects (#54261)
This commit is contained in:
committed by
GitHub
parent
002212c437
commit
38d84616ee
@@ -23,7 +23,7 @@ describe('getSolutionDisplayType', () => {
|
||||
'showMultifileProjectSolution'
|
||||
);
|
||||
expect(getSolutionDisplayType(multifilePythonSolution)).toBe(
|
||||
'showMultifileProjectSolution'
|
||||
'showUserCode'
|
||||
);
|
||||
});
|
||||
it('should handle solutions with a single valid url', () => {
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user