Skip to content

Commit

Permalink
re-added wallet for condition
Browse files Browse the repository at this point in the history
  • Loading branch information
elclandestin0 committed Feb 7, 2025
1 parent a62e149 commit 70712c1
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ const DesktopSidebar: React.FC<DesktopSidebarProps> = ({ navigationItems }) => {

const location = useLocation()
const navigate = useNavigate()
const { connectedAccount, isMetaMask, disconnectWallet, selectedNetworkType, setConnectedAccount, setWallet } =
const { connectedAccount, isMetaMask, disconnectWallet, selectedNetworkType, setConnectedAccount, setWallet, wallet } =
useBlockchainContext()
console.log(connectedAccount)

return (
<div className={styles.sideBar}>
Expand Down Expand Up @@ -72,7 +73,7 @@ const DesktopSidebar: React.FC<DesktopSidebarProps> = ({ navigationItems }) => {
</div>
<div className={styles.footer}>
<div className={styles.footerContent}>
{connectedAccount ? (
{connectedAccount && wallet ? (
<div className={styles.web3AddressContainer}>
<div className={styles.web3address}>
{`${connectedAccount.slice(0, 6)}...${connectedAccount.slice(-4)}`}
Expand Down

0 comments on commit 70712c1

Please sign in to comment.