Fix likes

This commit is contained in:
Arkadiusz Fal 2022-11-14 23:13:56 +01:00
parent ae24dea4d6
commit b92d71d79b
2 changed files with 2 additions and 11 deletions

View File

@ -19,15 +19,6 @@ extension PlayerModel {
return return
} }
if historyItemBeingLoaded == nil {
logger.info("loading history details: \(id)")
historyItemBeingLoaded = id
} else {
logger.info("POSTPONING history load: \(id)")
historyItemsToLoad.append(id)
return
}
playerAPI.video(id) playerAPI.video(id)
.load() .load()
.onSuccess { [weak self] response in .onSuccess { [weak self] response in

View File

@ -126,11 +126,11 @@ struct Video: Identifiable, Equatable, Hashable {
} }
var likesCount: String? { var likesCount: String? {
guard (likes ?? 0) > 0 else { guard let likes else {
return nil return nil
} }
return likes?.formattedAsAbbreviation() return likes.formattedAsAbbreviation()
} }
var dislikesCount: String? { var dislikesCount: String? {