From e354a296c10ba8b9f16df706a24341e4175e431b Mon Sep 17 00:00:00 2001 From: Jeremy Kescher Date: Fri, 12 Aug 2022 21:17:29 +0200 Subject: [PATCH] Web UI: Allow creating polls with only one option --- app/javascript/flavours/glitch/reducers/compose.js | 2 +- app/javascript/mastodon/reducers/compose.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/javascript/flavours/glitch/reducers/compose.js b/app/javascript/flavours/glitch/reducers/compose.js index 2ef08b2a6b..314acebcc6 100644 --- a/app/javascript/flavours/glitch/reducers/compose.js +++ b/app/javascript/flavours/glitch/reducers/compose.js @@ -126,7 +126,7 @@ const initialState = ImmutableMap({ }); const initialPoll = ImmutableMap({ - options: ImmutableList(['', '']), + options: ImmutableList(['']), expires_in: 24 * 3600, multiple: false, }); diff --git a/app/javascript/mastodon/reducers/compose.js b/app/javascript/mastodon/reducers/compose.js index 7aac87b5c4..eda30b7180 100644 --- a/app/javascript/mastodon/reducers/compose.js +++ b/app/javascript/mastodon/reducers/compose.js @@ -94,7 +94,7 @@ const initialState = ImmutableMap({ }); const initialPoll = ImmutableMap({ - options: ImmutableList(['', '']), + options: ImmutableList(['']), expires_in: 24 * 3600, multiple: false, });