Skip to content

Commit

Permalink
fix: hides user-account on explore pages
Browse files Browse the repository at this point in the history
  • Loading branch information
kenodressel authored and mmpetarpeshev committed Jun 26, 2024
1 parent 9d5c7a9 commit 0441bce
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/components/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
</div>
<NavigationMenu />
<div class="right">
<div v-if="activeNetwork && address" class="active-network">
<div v-if="activeNetwork && address && !isExplore" class="active-network">
<span class="circle" />
<span>{{ activeNetwork.name }}</span>
</div>
<ButtonDefault
v-if="!address"
v-if="!address && !isExplore"
:spinner="connectingToWallet"
:disabled="connectingToWallet"
class="connect-wallet"
Expand All @@ -22,7 +22,7 @@
>
<span>{{ $t('connectWallet') }}</span>
</ButtonDefault>
<div v-else class="account-info">
<div v-else-if="!isExplore" class="account-info">
<div
:class="['address', { pending: pendingTransactions.length }]"
data-cy="wallet-address"
Expand Down Expand Up @@ -159,6 +159,9 @@ export default {
return transactions.filter((t) => t.pending && !t.unfinished);
},
}),
isExplore() {
return this.$route.fullPath.includes('/explore');
},
},
methods: {
async connectWallet() {
Expand Down

0 comments on commit 0441bce

Please sign in to comment.