fix: separate saving logic from render logic (#57516)

This commit is contained in:
Oliver Eyton-Williams
2024-12-13 18:01:48 +01:00
committed by GitHub
parent b3f871a045
commit 25ebff3ca8
5 changed files with 27 additions and 33 deletions
+4
View File
@@ -143,3 +143,7 @@ export const submitTypes = {
[generic]: 'tests',
[lab]: 'tests'
};
export const canSaveToDB = (challengeType: number): boolean =>
challengeType === challengeTypes.multifileCertProject ||
challengeType === challengeTypes.multifilePythonCertProject;