pretty tsc lint

This commit is contained in:
Amaury Danis Cousandier
2024-01-11 17:56:32 +01:00
parent a69e5ac009
commit 29a9ffce74
2 changed files with 11 additions and 6 deletions

View File

@@ -156,7 +156,13 @@ const SearchBarComponent = (props: { onValidate: (searchData: searchProps) => vo
key={index}
name={artist.name}
onPress={() => {
props.onValidate({artist: artist.id, genre: genresQuery.data?.find((g) => g.name === genre)?.id ?? undefined, query: query})
props.onValidate({
artist: artist.id,
genre:
genresQuery.data?.find((g) => g.name === genre)
?.id ?? undefined,
query: query,
});
setArtist(artist.name);
}}
/>