Only show EventDetailBar if we have tips/likes/reposts

This commit is contained in:
William Casarin
2023-01-13 10:07:27 -08:00
parent abd5856f21
commit d59331bc3c
3 changed files with 25 additions and 12 deletions

View File

@@ -29,6 +29,10 @@ class ActionBarModel: ObservableObject {
self.our_tip = our_tip
}
var is_empty: Bool {
return likes == 0 && boosts == 0 && tips == 0
}
var tipped: Bool {
return our_tip != nil
}