Minor UI fixes

This commit is contained in:
Arkadiusz Fal
2021-11-08 00:34:42 +01:00
parent 76939e8a19
commit 2701c1ccb5
3 changed files with 4 additions and 4 deletions

View File

@@ -19,7 +19,7 @@ struct FavoriteItem: Codable, Equatable, Identifiable, Defaults.Serializable {
case let .trending(country, category):
let trendingCountry = Country(rawValue: country)!
let trendingCategory = category.isNil ? nil : TrendingCategory(rawValue: category!)!
return "\(trendingCountry.flag) \(trendingCategory?.name ?? "")"
return "\(trendingCountry.flag) \(trendingCountry.id) \(trendingCategory?.name ?? "Trending")"
case let .channel(_, name):
return name
case let .channelPlaylist(_, name):