diff --git a/BlackCandy/Store/PlayerReducer.swift b/BlackCandy/Store/PlayerReducer.swift index fa6fa65..3bf0b8c 100644 --- a/BlackCandy/Store/PlayerReducer.swift +++ b/BlackCandy/Store/PlayerReducer.swift @@ -104,9 +104,9 @@ struct PlayerReducer: Reducer { .toggleFavoriteResponse( TaskResult { if currentSong.isFavorited { - try await apiClient.deleteSongInFavorite(currentSong) + return try await apiClient.deleteSongInFavorite(currentSong) } else { - try await apiClient.addSongToFavorite(currentSong) + return try await apiClient.addSongToFavorite(currentSong) } } )