Front: Fix Score computation

This commit is contained in:
Arthur Jamet
2023-05-23 14:58:55 +01:00
committed by Zoe Roux
parent 1545c9240b
commit 1fa8c7a560
+1 -1
View File
@@ -37,7 +37,7 @@ const ScoreView = ({ songId, overallScore, score }: RouteProps<ScoreViewProps>)
})) ?? []
)
if (!recommendations.data || artistRecommendations.find(({ data }) => !data) || !songHistoryQuery.data || !songQuery.data || (songQuery.data.artistId && !artistQuery.data)) {
if (!recommendations.data || artistRecommendations.find(({ data }) => !data) || !songQuery.data || (songQuery.data.artistId && !artistQuery.data)) {
return <LoadingView/>;
}
// I think we don't need that anymore but /shrug