Revert "feat: merge conflicts"
This reverts commit73ec807dd3, reversing changes made to62cfecc456.
This commit is contained in:
@@ -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 };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user