Skip to content

Commit

Permalink
Use localized string for 'origin'
Browse files Browse the repository at this point in the history
  • Loading branch information
Gudahtt committed Jan 28, 2021
1 parent fe7861d commit a774097
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -152,14 +152,17 @@ export default class SignatureRequestOriginal extends Component {

renderOriginInfo = () => {
const { txData, domainMetadata } = this.props
const { t } = this.context

const originMetadata = txData.msgParams.origin
? domainMetadata?.[txData.msgParams.origin]
: null

return (
<div className="request-signature__origin-row">
<div className="request-signature__origin-label">Origin:</div>
<div className="request-signature__origin-label">
{`${t('origin')}:`}
</div>
{originMetadata?.icon ? (
<SiteIcon
icon={originMetadata.icon}
Expand Down

0 comments on commit a774097

Please sign in to comment.