Fix poll got false value

This commit is contained in:
Lim Chee Aun 2024-03-27 09:46:37 +08:00
parent 7cac17a043
commit 4abb1aeaed

View file

@ -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) {