Skip to content

Commit

Permalink
FIX question submitted time when null
Browse files Browse the repository at this point in the history
  • Loading branch information
wabscale committed Feb 10, 2022
1 parent d9e5232 commit 085449a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/components/core/Questions/QuestionItem.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default function QuestionItem({question, onClick}) {
<Typography style={{color: statusColorCss}}>
{status}
</Typography>
<Typography> {new Date(submitted).toLocaleString()}</Typography>
<Typography> {!!submitted ? new Date(submitted).toLocaleString() : 'No Submission'}</Typography>
</Item>
);
};

0 comments on commit 085449a

Please sign in to comment.