Skip to content

Commit

Permalink
Get prop for signed typed data from domain instead of message
Browse files Browse the repository at this point in the history
  • Loading branch information
danjm committed Nov 13, 2019
1 parent ce7f516 commit ef039d2
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,22 +54,22 @@ export default class SignatureRequest extends PureComponent {
cancel,
sign,
} = this.props
const { message } = JSON.parse(data)
const { message, domain = {} } = JSON.parse(data)

return (
<div className="signature-request page-container">
<Header selectedAccount={selectedAccount} />
<div className="signature-request-content">
<div className="signature-request-content__title">{this.context.t('sigRequest')}</div>
<div className="signature-request-content__identicon-container">
<div className="signature-request-content__identicon-initial" >{ message.from.name && message.from.name[0] }</div>
<div className="signature-request-content__identicon-initial" >{ domain.name && domain.name[0] }</div>
<div className="signature-request-content__identicon-border" />
<Identicon
address={message.from.wallet}
address={senderWallet}
diameter={70}
/>
</div>
<div className="signature-request-content__info--bolded">{message.from.name}</div>
<div className="signature-request-content__info--bolded">{domain.name}</div>
<div className="signature-request-content__info">{origin}</div>
<div className="signature-request-content__info">{this.formatWallet(senderWallet)}</div>
</div>
Expand Down

0 comments on commit ef039d2

Please sign in to comment.