From 4abb1aeaed3221c97fa86163f751ac4b588d49cf Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Wed, 27 Mar 2024 09:46:37 +0800 Subject: [PATCH] Fix poll got false value --- src/components/compose.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/compose.jsx b/src/components/compose.jsx index e4fd27b6..4693fd8a 100644 --- a/src/components/compose.jsx +++ b/src/components/compose.jsx @@ -299,7 +299,7 @@ function Compose({ setVisibility(visibility); setLanguage(language || presf.postingDefaultLanguage || DEFAULT_LANG); setSensitive(sensitive); - setPoll(composablePoll); + if (composablePoll) setPoll(composablePoll); setMediaAttachments(mediaAttachments); setUIState('default'); } catch (e) {