Skip to content

Commit

Permalink
Merge pull request #50 from qlemaire22/fix-widget-condition
Browse files Browse the repository at this point in the history
Fix widget condition
  • Loading branch information
reneklacan authored Feb 9, 2024
2 parents 2f38bfd + 0efb847 commit b2ac0dd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/pages/players/[id]-[username].astro
Original file line number Diff line number Diff line change
Expand Up @@ -100,20 +100,20 @@ const highestLeague = player?.leaderboard_entries?.reduce(
{playerActivity?.history && <PlayerActivity activity={playerActivity} {player} />}
</div>
<div class="hidden lg:block">
{playerMatchupStats.matchups.length && <PlayerMatchupStats playerMatchupStats={playerMatchupStats} />}
{playerMatchupStats.matchups.length > 0 && <PlayerMatchupStats playerMatchupStats={playerMatchupStats} />}
</div>
<div class="hidden lg:block">
{playerOpponents.opponents.length && <PlayerOpponents opponents={playerOpponents} />}
{playerOpponents.opponents.length > 0 && <PlayerOpponents opponents={playerOpponents} />}
</div>
</div>
<div class="sm:hidden">
{playerActivity?.history && <PlayerActivity activity={playerActivity} {player} />}
</div>
<div class="lg:hidden">
{playerMatchupStats.matchups.length && <PlayerMatchupStats playerMatchupStats={playerMatchupStats} />}
{playerMatchupStats.matchups.length > 0 && <PlayerMatchupStats playerMatchupStats={playerMatchupStats} />}
</div>
<div class="lg:hidden">
{playerOpponents.opponents.length && <PlayerOpponents opponents={playerOpponents} />}
{playerOpponents.opponents.length > 0 && <PlayerOpponents opponents={playerOpponents} />}
</div>
</section>
</Layout>

0 comments on commit b2ac0dd

Please sign in to comment.