From 359ded7ded00f0dc8d386aebf4bb9a2a2f50743f Mon Sep 17 00:00:00 2001 From: Bruno Barbieri Date: Mon, 31 Jul 2023 15:40:54 -0400 Subject: [PATCH] add optionals to prevent crash --- src/entries/popup/pages/messages/BottomActions/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/entries/popup/pages/messages/BottomActions/index.tsx b/src/entries/popup/pages/messages/BottomActions/index.tsx index 0bfcc9eeb7..05091b1187 100644 --- a/src/entries/popup/pages/messages/BottomActions/index.tsx +++ b/src/entries/popup/pages/messages/BottomActions/index.tsx @@ -302,8 +302,8 @@ export const BottomSwitchNetwork = ({ export const WalletBalance = ({ appHost }: { appHost: string }) => { const { appSession } = useAppSession({ host: appHost }); const { data: balance } = useBalance({ - address: appSession.address, - chainId: appSession.chainId, + address: appSession?.address, + chainId: appSession?.chainId, }); const displayBalance = handleSignificantDecimals(balance?.formatted || 0, 4);