liked handled properly

This commit is contained in:
Amaury Danis Cousandier
2024-01-11 17:46:27 +01:00
parent 934010a0c1
commit caa3322676
2 changed files with 9 additions and 11 deletions
+1
View File
@@ -156,6 +156,7 @@ 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})
setArtist(artist.name);
}}
/>