Skip to content

Commit

Permalink
fix: does not render an info button if no info blurb exists ('')
Browse files Browse the repository at this point in the history
  • Loading branch information
Eein committed Nov 5, 2024
1 parent 2178d33 commit 269870a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion components/blocks/LeaderboardInfo/LeaderboardInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ defineProps<LeaderboardInfoProps>()
<div class="flex w-full flex-col rounded border border-gray-300 p-5">
<div id="leaderboard-show-header" class="mb-4 bg-gray-200 p-4">
<h1 class="mb-4 text-xl font-bold">{{ leaderboard.name }}</h1>
<LeaderboardInfoAccordion :info="leaderboard.info" />
<LeaderboardInfoAccordion
v-if="leaderboard.info != null && leaderboard.info != ''"
:info="leaderboard.info"
/>
</div>
</div>
</template>

0 comments on commit 269870a

Please sign in to comment.