Skip to content

Commit

Permalink
fix: show supervisor name on supervisor proposals
Browse files Browse the repository at this point in the history
  • Loading branch information
rschlaefli committed Jan 18, 2023
1 parent c091a25 commit 9222eed
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
IconDefinition,
} from '@fortawesome/free-regular-svg-icons'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { ProposalType } from '@lib/constants'
import { trpc } from '@lib/trpc'
import { inferProcedureOutput } from '@trpc/server'
import { Button, H1, H2, H3, Table, Tabs } from '@uzh-bf/design-system'
Expand Down Expand Up @@ -294,7 +295,11 @@ function ProposalCard({
<div className="mt-1 space-y-1 text-xs">
<div>{proposal.studyLevel}</div>
<div>{proposal.topicArea.name}</div>
<div>{proposal.applications?.[0]?.fullName}</div>
<div>
{proposal.typeKey === ProposalType.STUDENT
? proposal.applications?.[0]?.fullName
: proposal.supervisedBy?.name}
</div>
</div>
</Button>
)
Expand Down

0 comments on commit 9222eed

Please sign in to comment.