Skip to content

Commit

Permalink
Add check for environment before accessing sandbox wallet address
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulyadav-57 committed Apr 3, 2024
1 parent d62ceab commit 492992f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/workspace/BuildProject/BuildProject.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,7 @@ const BuildProject: FC<Props> = ({

const getConnectedWallet = () => {
let _connectedWalletAddress =
environment === 'SANDBOX' &&
globalWorkspace.sandboxWallet?.address.toString();

if (environment !== 'SANDBOX' && connectedWalletAddress) {
Expand Down

0 comments on commit 492992f

Please sign in to comment.