diff --git a/app/soapbox/components/status_content.tsx b/app/soapbox/components/status_content.tsx index 87ec17298..9cbafa67f 100644 --- a/app/soapbox/components/status_content.tsx +++ b/app/soapbox/components/status_content.tsx @@ -273,13 +273,11 @@ const StatusContent: React.FC = ({ status, expanded = false, onE output.push(); } - const hasPoll = status.poll && typeof status.poll === 'string'; - - if (hasPoll) { + if (status.poll && typeof status.poll === 'string') { output.push(); } - return
{output}
; + return <>{output}; } else { const output = [
{ const maxOptions = pollLimits.get('max_options'); const maxOptionChars = pollLimits.get('max_characters_per_option'); - const handleAddOption = () => { - // autofocus on new input - // use streamfield - onAddOption(''); - }; - + const handleAddOption = () => onAddOption(''); const handleSelectDuration = (value: number) => onChangeSettings(value, isMultiple); const handleToggleMultiple = () => onChangeSettings(expiresIn, !isMultiple);