Fix visibility of likes/dislikes

This commit is contained in:
Arkadiusz Fal 2021-12-19 17:15:27 +01:00
parent 4793fc9a38
commit 984e9e7b16

View File

@ -85,7 +85,7 @@ struct Video: Identifiable, Equatable, Hashable {
}
var likesCount: String? {
guard likes != -1 else {
guard (likes ?? 0) > 0 else {
return nil
}
@ -93,7 +93,7 @@ struct Video: Identifiable, Equatable, Hashable {
}
var dislikesCount: String? {
guard dislikes != -1 else {
guard (dislikes ?? 0) > 0 else {
return nil
}