Skip to content

Commit

Permalink
Don't show website link if no website available
Browse files Browse the repository at this point in the history
Fixes #225.
  • Loading branch information
sisou committed Nov 22, 2024
1 parent 306a68f commit 6cdc26b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/staking/ValidatorDetailsOverlay.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@
<p v-else>{{ $t('No description available') }}</p>
</div>

<BlueLink v-if="'website' in validator && 'name' in validator"
<BlueLink v-if="'website' in validator && validator.website && 'name' in validator"
:href="validator.website" target="_blank" rel="noopener"
>
>
{{ $t('{poolName} Website', { poolName: validator.name }) }}
</BlueLink>
<p class="disclaimer">
Expand Down

0 comments on commit 6cdc26b

Please sign in to comment.