Arrow functions and so

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak
2024-05-13 01:18:04 +02:00
parent 615ec68931
commit a58c52631e
352 changed files with 2894 additions and 3693 deletions

View File

@ -11,9 +11,9 @@ const buildPoll = (draftStatus: DraftStatus) => {
if (draftStatus.hasIn(['poll', 'options'])) {
return draftStatus.poll!
.set('id', `${draftStatus.draft_id}-poll`)
.update('options', (options: ImmutableMap<string, any>) => {
return options.map((title: string) => ImmutableMap({ title }));
});
.update('options', (options: ImmutableMap<string, any>) =>
options.map((title: string) => ImmutableMap({ title })),
);
} else {
return null;
}