From 0fa829e3a0bb8a7b4faebd1dd91fd61b3f517cb8 Mon Sep 17 00:00:00 2001 From: Lumaa Date: Fri, 29 Mar 2024 13:30:59 +0100 Subject: [PATCH] Bug fixes --- Threaded/Components/Post/PostPoll.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Threaded/Components/Post/PostPoll.swift b/Threaded/Components/Post/PostPoll.swift index b64fc95..98fc306 100644 --- a/Threaded/Components/Post/PostPoll.swift +++ b/Threaded/Components/Post/PostPoll.swift @@ -73,6 +73,7 @@ struct PostPoll: View { .foregroundStyle(Color(uiColor: UIColor.systemBackground)) .font(.subheadline) .padding(.leading, 25) + .transition(.identity) if selectedOption.contains(index ?? 0) { Image(systemName: "checkmark.circle.fill") @@ -122,6 +123,7 @@ struct PostPoll: View { Text(showResults ? LocalizedStringKey("status.poll.hide-results") : LocalizedStringKey("status.poll.show-results")) } .buttonStyle(LargeButton(filled: false, height: 7.5)) + .disabled(poll.safeVotersCount == 0) } }