fix: removed view project buttons from Python cert projects (#54261)
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';
|
||||
|
|
Loading…
Reference in New Issue