Skip to content

Commit

Permalink
fix(preselectionDrawer.tsx): case of no topic id being passed
Browse files Browse the repository at this point in the history
DIAKONIE-399
  • Loading branch information
koepferd committed Sep 12, 2024
1 parent b407c62 commit ef3a42a
Showing 1 changed file with 14 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,28 +155,30 @@ export const PreselectionDrawer = () => {
/>
) : (
<>
<Typography
sx={{
color: 'white',
fontWeight: '600',
mt: '24px'
}}
>
{t('registration.topic.summary')}
</Typography>
{preselectedTopic || hasTopicError ? (
<Typography
sx={{
color: 'white',
fontWeight: '600',
mt: '24px'
}}
>
{t('registration.topic.summary')}
</Typography>
) : null}
{hasTopicError ? (
<PreselectionError
errorMessage={t(
'registration.errors.tid'
)}
/>
) : (
) : preselectedAgency ? (
<Typography
sx={{ color: 'white', mt: '8px' }}
>
{preselectedTopic.name}
{preselectedTopic?.name}
</Typography>
)}
) : null}
<Typography
sx={{
color: 'white',
Expand Down

0 comments on commit ef3a42a

Please sign in to comment.