Skip to content

Commit

Permalink
campaigns/CampaignInfo: Use campaign type name rather than translated…
Browse files Browse the repository at this point in the history
… value

New campaign types are added dynamically through the admin panel, thus some translation could be missin in the file.
Use name of campaignType until we figure out a way to translate them dynamically
  • Loading branch information
sashko9807 committed Dec 14, 2023
1 parent 852970f commit 2aaa9de
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,7 @@ export default function CampaignInfoStatus({ campaign, showExpensesLink }: Props
</Box>
<InfoStatusWrapper>
<Grid item xs={12} md={6}>
<StatusLabel>
{t(`campaigns:campaignTypesFields.${campaign.campaignType.slug}`)}
</StatusLabel>
<StatusLabel>{campaign.campaignType.name}</StatusLabel>
<RowWrapper>
<StatusLabel variant="body2">{t('campaigns:campaign.status')}</StatusLabel>
<StatusText>{t(`campaigns:campaign-status.${campaign.state}`)}</StatusText>
Expand Down

0 comments on commit 2aaa9de

Please sign in to comment.