damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit 3098d4b4faf6dbe0a38bf865728e43fbfecf0751
parent 0178478199706ac1921bda0815697590391322b9
Author: William Casarin <jb55@jb55.com>
Date:   Sun,  6 Aug 2023 07:03:46 -0700

bar: fix crash when long pressing emoji selection

Changelog-Fixed: Fix crash when long-pressing reactions

Diffstat:
Mdamus/Views/ActionBar/EventActionBar.swift | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/damus/Views/ActionBar/EventActionBar.swift b/damus/Views/ActionBar/EventActionBar.swift @@ -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 {