Skip to content

Commit

Permalink
Results changes after backend now returns the entire grade object
Browse files Browse the repository at this point in the history
  • Loading branch information
michalmasrna1 committed Nov 22, 2024
1 parent 064d05f commit f3dced3
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/components/Results/ResultsRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@ interface Registration {
city: string
zip_code: string
}
grade: string
grade: {
name: string
tag: string
years_until_graduation: number
is_active: boolean
}
profile: {
first_name: string
last_name: string
Expand Down Expand Up @@ -55,7 +60,7 @@ export const ResultsRow: FC<{result: Result}> = ({result}) => {
</div>
<div className={styles.grade}>
<Typography variant="h3" component="span" fontWeight={400} fontStyle="italic">
{registration.grade}
{registration.grade.tag}
</Typography>
</div>
<div className={styles.score}>
Expand Down

0 comments on commit f3dced3

Please sign in to comment.