From 8fd65a698ee17db0730e37c91e836b57c05d4ab7 Mon Sep 17 00:00:00 2001 From: Jyoti Puri Date: Wed, 1 Feb 2023 19:07:15 +0530 Subject: [PATCH] Fix build (#17538) --- ...irm-page-container-navigation.component.js | 4 +- .../confirm-transaction-base.test.js.snap | 4 +- .../__snapshots__/conf-tx.test.js.snap | 66 +++++++++++++++++++ 3 files changed, 70 insertions(+), 4 deletions(-) diff --git a/ui/components/app/confirm-page-container/confirm-page-container-navigation/confirm-page-container-navigation.component.js b/ui/components/app/confirm-page-container/confirm-page-container-navigation/confirm-page-container-navigation.component.js index d116109de..f60c14318 100755 --- a/ui/components/app/confirm-page-container/confirm-page-container-navigation/confirm-page-container-navigation.component.js +++ b/ui/components/app/confirm-page-container/confirm-page-container-navigation/confirm-page-container-navigation.component.js @@ -27,9 +27,9 @@ const ConfirmPageContainerNavigation = () => { unconfirmedTransactionsHashSelector, ); - const enumUnapprovedDecryptMsgsKey = Object.keys(unapprovedDecryptMsgs); + const enumUnapprovedDecryptMsgsKey = Object.keys(unapprovedDecryptMsgs || {}); const enumUnapprovedEncryptMsgsKey = Object.keys( - unapprovedEncryptionPublicKeyMsgs, + unapprovedEncryptionPublicKeyMsgs || {}, ); const enumDecryptAndEncryptMsgs = [ ...enumUnapprovedDecryptMsgsKey, diff --git a/ui/pages/confirm-transaction-base/__snapshots__/confirm-transaction-base.test.js.snap b/ui/pages/confirm-transaction-base/__snapshots__/confirm-transaction-base.test.js.snap index 0dd91842e..1fe352eb0 100644 --- a/ui/pages/confirm-transaction-base/__snapshots__/confirm-transaction-base.test.js.snap +++ b/ui/pages/confirm-transaction-base/__snapshots__/confirm-transaction-base.test.js.snap @@ -42,7 +42,7 @@ exports[`Confirm Transaction Base should match snapshot 1`] = ` of - 0 + 1
+
+
+ 0 + + of + + 1 +
+
+ requests waiting to be acknowledged +
+
+
+ + +
+