chore: empty rooms list
continuous-integration/drone/push Build is passing Details

main
parent e0780f4217
commit a02f32e024

@ -14,21 +14,25 @@ export const Rooms = () => {
return (
<div class="stack-v">
{rooms.map((room, i) => (
<div class="card tint-green stack-v center">
<div class="fill-w stack-h center" key={i}>
<code>{room.id}</code>
<div class="fill"></div>
<button
onClick={() => {
location.href = `/${room.id}`
}}
>
Classifica
</button>
{rooms.length === 0 ? (
<div>Ancora nessuna gara</div>
) : (
rooms.map((room, i) => (
<div class="card tint-green stack-v center">
<div class="fill-w stack-h center" key={i}>
<code>{room.id}</code>
<div class="fill"></div>
<button
onClick={() => {
location.href = `/${room.id}`
}}
>
Classifica
</button>
</div>
</div>
</div>
))}
))
)}
</div>
)
}

Loading…
Cancel
Save