This commit is contained in:
Henry Jameson 2026-08-04 16:38:17 +03:00
commit b7907534b4
2 changed files with 4 additions and 4 deletions

View file

@ -17,9 +17,9 @@ export const pollFormToMasto = (poll) => {
pollFallback(poll, 'expiryAmount'),
)
const options = [...new Set(
pollFallback(poll, 'options').filter((option) => option !== ''),
)]
const options = [
...new Set(pollFallback(poll, 'options').filter((option) => option !== '')),
]
if (options.length < 2) {
return { errorKey: 'polls.not_enough_options' }
}

View file

@ -7,9 +7,9 @@ import {
get,
groupBy,
isEqual,
last,
set,
take,
last,
uniqWith,
unset,
} from 'lodash'