Skip to content

Commit c2bfcd1

Browse files
committed
fix(#2888): fix displaying givenName placeholder instead of value
1 parent 8d734da commit c2bfcd1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ changes.
2121
- Fix displaying vote pill on voted on cards
2222
- Fix incorrect link to learn more about direct voters [Issue 2647](https://github.com/IntersectMBO/govtool/issues/2647)
2323
- Fix missing No DRep found message on DRep Directory [Issue 2889](https://github.com/IntersectMBO/govtool/issues/2889)
24+
- Fix displaying givenName placeholder instead of actual value on DRep card [Issue 2888](https://github.com/IntersectMBO/govtool/issues/2888)
2425

2526
### Changed
2627

govtool/frontend/src/components/organisms/DashboardCards/DRepDashboardCard.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export const DRepDashboardCard = ({
6666
i18nKey="dashboard.cards.drep.retirementInProgressWithGivenName"
6767
values={{
6868
deposit: correctAdaFormat(voter?.deposit),
69-
name: voter?.givenName,
69+
givenName: voter?.givenName,
7070
}}
7171
/>
7272
) : (
@@ -140,7 +140,7 @@ export const DRepDashboardCard = ({
140140
description: voter?.givenName ? (
141141
<Trans
142142
i18nKey="dashboard.cards.drep.notRegisteredWasRegisteredDescriptionWithGivenName"
143-
values={{ name: voter?.givenName }}
143+
values={{ givenName: voter?.givenName ?? "DRep" }}
144144
/>
145145
) : (
146146
<Trans i18nKey="dashboard.cards.drep.notRegisteredWasRegisteredDescription" />

0 commit comments

Comments
 (0)