Revert "feat: merge conflicts"

This reverts commit 73ec807dd3, reversing
changes made to 62cfecc456.
This commit is contained in:
rayzhou-bit
2023-01-23 14:51:21 -05:00
parent 73ec807dd3
commit bafc3c8de8
144 changed files with 3410 additions and 4072 deletions

View File

@@ -16,7 +16,10 @@ export const parseScoringSettings = (metadata) => {
let attempts = popuplateItem({}, 'max_attempts', 'number', metadata);
if (!_.isEmpty(attempts)) {
const unlimited = _.isNaN(attempts.number);
let unlimited = true;
if (attempts.number > 0) {
unlimited = false;
}
attempts = { ...attempts, unlimited };
scoring = { ...scoring, attempts };
}