diff --git a/frontend/frontend/src/pages/assignmentPage/AssignmentPage.tsx b/frontend/frontend/src/pages/assignmentPage/AssignmentPage.tsx index 5e9bc6a7..f127389e 100644 --- a/frontend/frontend/src/pages/assignmentPage/AssignmentPage.tsx +++ b/frontend/frontend/src/pages/assignmentPage/AssignmentPage.tsx @@ -17,8 +17,7 @@ import { Skeleton, Stack, Tooltip, - Typography, - ListItemText + Typography } from '@mui/material' import { t } from 'i18next' import instance from '../../axiosConfig.ts' @@ -950,29 +949,45 @@ export function AssignmentPage() { - {'Score: '} + Score: {submissions.length > 0 ? ( - + > + {score + ? `${score.score}/${assignment?.max_score} (${(100 * score.score) / Number(assignment?.max_score)}%)` + : t('no_score_yet')} + ) : ( - + + {t('no_score_yet')} + )}