fix(ssr): fix no players msg showing if there's no search
All checks were successful
deploy / deploy (push) Successful in 1m5s
All checks were successful
deploy / deploy (push) Successful in 1m5s
This commit is contained in:
parent
350fe875fe
commit
426a2b5a2f
@ -80,8 +80,8 @@ export default function SearchPlayer() {
|
||||
players ? "flex" : "hidden",
|
||||
)}
|
||||
>
|
||||
{players && players.length > 0 ? (
|
||||
players.map((player: ScoresaberPlayer) => (
|
||||
{players && players.length > 0
|
||||
? players.map((player: ScoresaberPlayer) => (
|
||||
<Link
|
||||
key={player.id}
|
||||
className="flex min-w-[14rem] items-center gap-2 p-2 transition-all hover:bg-background"
|
||||
@ -97,9 +97,7 @@ export default function SearchPlayer() {
|
||||
</div>
|
||||
</Link>
|
||||
))
|
||||
) : (
|
||||
<div className="p-2">No players found</div>
|
||||
)}
|
||||
: search.length > 0 && <div className="p-2">No players found</div>}
|
||||
</div>
|
||||
</form>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user