From ef039d20e8c4fd16a81aea04dc957df06fb82e7c Mon Sep 17 00:00:00 2001 From: Dan Miller Date: Wed, 13 Nov 2019 10:07:25 -0330 Subject: [PATCH] Get prop for signed typed data from domain instead of message --- .../app/signature-request/signature-request.component.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ui/app/components/app/signature-request/signature-request.component.js b/ui/app/components/app/signature-request/signature-request.component.js index 7029b1e00143..81befa1c9023 100644 --- a/ui/app/components/app/signature-request/signature-request.component.js +++ b/ui/app/components/app/signature-request/signature-request.component.js @@ -54,7 +54,7 @@ export default class SignatureRequest extends PureComponent { cancel, sign, } = this.props - const { message } = JSON.parse(data) + const { message, domain = {} } = JSON.parse(data) return (
@@ -62,14 +62,14 @@ export default class SignatureRequest extends PureComponent {
{this.context.t('sigRequest')}
-
{ message.from.name && message.from.name[0] }
+
{ domain.name && domain.name[0] }
-
{message.from.name}
+
{domain.name}
{origin}
{this.formatWallet(senderWallet)}