lint
This commit is contained in:
parent
2db420ac54
commit
b7907534b4
2 changed files with 4 additions and 4 deletions
|
|
@ -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' }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,9 +7,9 @@ import {
|
|||
get,
|
||||
groupBy,
|
||||
isEqual,
|
||||
last,
|
||||
set,
|
||||
take,
|
||||
last,
|
||||
uniqWith,
|
||||
unset,
|
||||
} from 'lodash'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue