Skip to content

Commit 3f50f41

Browse files
committed
removed notAttempted check
1 parent e7e9212 commit 3f50f41

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/commons/assessmentWorkspace/AssessmentWorkspace.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ const AssessmentWorkspace: React.FC<AssessmentWorkspaceProps> = props => {
9696
const [sessionId, setSessionId] = useState('');
9797
const [isSubmitted, setIsSubmitted] = useState(false);
9898
const { isMobileBreakpoint } = useResponsive();
99+
console.log(props);
99100

100101
const assessment = useTypedSelector(state => state.session.assessments[props.assessmentId]);
101102
const assessmentOverviews = useTypedSelector(state => state.session.assessmentOverviews);
@@ -602,8 +603,6 @@ const AssessmentWorkspace: React.FC<AssessmentWorkspaceProps> = props => {
602603
};
603604
const onClickReturn = () => navigate(listingPath);
604605
const onClickSubmit = () => {
605-
if (props.notAttempted) return;
606-
607606
dispatch(SessionActions.submitAssessment(assessment.id));
608607
setIsSubmitted(true);
609608
};

0 commit comments

Comments
 (0)