From 09ac2ff3d49f7b8160d8580cc16fa1c522222e20 Mon Sep 17 00:00:00 2001 From: Vanessa Rodriguez Cristobal Date: Tue, 26 Mar 2024 13:03:31 +0000 Subject: [PATCH] fix: add optional chaning --- .../confirm-transaction/DappTransactionContainer.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/apps/browser-extension-wallet/src/features/dapp/components/confirm-transaction/DappTransactionContainer.tsx b/apps/browser-extension-wallet/src/features/dapp/components/confirm-transaction/DappTransactionContainer.tsx index 27e5ea00f..73a523c67 100644 --- a/apps/browser-extension-wallet/src/features/dapp/components/confirm-transaction/DappTransactionContainer.tsx +++ b/apps/browser-extension-wallet/src/features/dapp/components/confirm-transaction/DappTransactionContainer.tsx @@ -104,10 +104,7 @@ export const DappTransactionContainer = withAddressBookContext( const userAddresses = useMemo(() => walletInfo.addresses.map((v) => v.address), [walletInfo.addresses]); const userRewardAccounts = useObservable(inMemoryWallet.delegation.rewardAccounts$); - const rewardAccountsAddresses = useMemo( - () => userRewardAccounts && userRewardAccounts.map((key) => key.address), - [userRewardAccounts] - ); + const rewardAccountsAddresses = useMemo(() => userRewardAccounts?.map((key) => key.address), [userRewardAccounts]); const protocolParameters = useObservable(inMemoryWallet?.protocolParameters$); useEffect(() => {