From 492992fd25f904d2b40ea6c88b49fb050ef3f758 Mon Sep 17 00:00:00 2001 From: Rahul Yadav Date: Wed, 3 Apr 2024 23:04:22 +0530 Subject: [PATCH] Add check for environment before accessing sandbox wallet address --- src/components/workspace/BuildProject/BuildProject.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/workspace/BuildProject/BuildProject.tsx b/src/components/workspace/BuildProject/BuildProject.tsx index 07df49b..869cc14 100644 --- a/src/components/workspace/BuildProject/BuildProject.tsx +++ b/src/components/workspace/BuildProject/BuildProject.tsx @@ -561,6 +561,7 @@ const BuildProject: FC = ({ const getConnectedWallet = () => { let _connectedWalletAddress = + environment === 'SANDBOX' && globalWorkspace.sandboxWallet?.address.toString(); if (environment !== 'SANDBOX' && connectedWalletAddress) {