Skip to content

Commit 127dc19

Browse files
authored
Merge pull request #2097 from oasisprotocol/csillag/fix-endorsement-regression
Fix regression in displaying Endorsements
2 parents 57d5267 + d6583dd commit 127dc19

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.changelog/2097.bugfix.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix regression in displaying Endorsements

src/app/pages/RoflAppDetailsPage/Endorsement.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,13 @@ export const Endorsement: FC<EndorsementProps> = ({ endorsements, groupOp }) =>
113113
t={t}
114114
i18nKey="rofl.endorsementLabels.node"
115115
components={{
116-
Address: <AccountLink scope={scope} address={value} alwaysAdapt />,
116+
Address: (
117+
<AccountLink
118+
scope={scope}
119+
address={getOasisAddressFromBase64PublicKey(value)}
120+
alwaysAdapt
121+
/>
122+
),
117123
}}
118124
/>
119125
</StyledBox>

src/locales/en/translation.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,7 @@
732732
"endorsementLabels": {
733733
"any": "Any node can endorse the enclave",
734734
"entity": "Node from entity <Address />",
735-
"node": "Node <address />",
735+
"node": "Node <Address />",
736736
"role_compute": "Node has the <i>compute</i> role for the current runtime",
737737
"role_observer": "Node has the <i>observer</i> role for the current runtime",
738738
"provider": "Node from provider <Address />",

0 commit comments

Comments
 (0)