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

main
parent e0780f4217
commit a02f32e024

@ -14,7 +14,10 @@ export const Rooms = () => {
return ( return (
<div class="stack-v"> <div class="stack-v">
{rooms.map((room, i) => ( {rooms.length === 0 ? (
<div>Ancora nessuna gara</div>
) : (
rooms.map((room, i) => (
<div class="card tint-green stack-v center"> <div class="card tint-green stack-v center">
<div class="fill-w stack-h center" key={i}> <div class="fill-w stack-h center" key={i}>
<code>{room.id}</code> <code>{room.id}</code>
@ -28,7 +31,8 @@ export const Rooms = () => {
</button> </button>
</div> </div>
</div> </div>
))} ))
)}
</div> </div>
) )
} }

Loading…
Cancel
Save