bar: fix crash when long pressing emoji selection
Changelog-Fixed: Fix crash when long-pressing reactions
This commit is contained in:
@@ -307,7 +307,7 @@ struct LikeButton: View {
|
||||
HStack(spacing: 20) {
|
||||
ForEach(emojis, id: \.self) { emoji in
|
||||
if let index = emojis.firstIndex(of: emoji) {
|
||||
let scale = showEmojis.count >= index + 1 ? showEmojis[index] : 0
|
||||
let scale = index < showEmojis.count ? showEmojis[index] : 0
|
||||
Text(emoji)
|
||||
.scaleEffect(Double(scale))
|
||||
.onTapGesture {
|
||||
|
||||
Reference in New Issue
Block a user