SearchBar should prefer the current games playtype.

This commit is contained in:
zkldi
2022-02-09 02:59:13 +00:00
parent ecc0b44cc6
commit ef7d8cdc1d
@@ -142,9 +142,8 @@ function SearchResults({ results }: { results: SearchReturns }) {
{results.songs.map(s => (
<SearchResult
key={s.id + s.game}
link={`/dashboard/games/${s.game}/${
GetGameConfig(s.game).defaultPlaytype
}/songs/${s.id}`}
link={`/dashboard/games/${s.game}/${playtype ??
GetGameConfig(s.game).defaultPlaytype}/songs/${s.id}`}
tabIndex={0}
>
<strong>{FormatSongTitle(s.game, s)}</strong>