diff options
author | dartcafe <github@dartcafe.de> | 2021-04-19 01:07:56 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2021-04-19 01:07:56 +0300 |
commit | b043995465a9d150167a8d07c9f37efe15826436 (patch) | |
tree | 6b5c4285551342ce588f069055a4002814cb9146 /src/js/components/SideBar | |
parent | 3a49867c69438f1c65ae6a28f5913429a20fefbc (diff) |
no-negated-condition
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to 'src/js/components/SideBar')
-rw-r--r-- | src/js/components/SideBar/SideBarTabConfiguration.vue | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/js/components/SideBar/SideBarTabConfiguration.vue b/src/js/components/SideBar/SideBarTabConfiguration.vue index cd3be93d..3a028ac5 100644 --- a/src/js/components/SideBar/SideBarTabConfiguration.vue +++ b/src/js/components/SideBar/SideBarTabConfiguration.vue @@ -143,15 +143,15 @@ export default { }, async writePoll() { - if (!this.poll.title) { - showError(t('polls', 'Title must not be empty!')) - } else { + if (this.poll.title) { try { await this.$store.dispatch('poll/update') this.successDebounced(this.poll.title) } catch { showError(t('polls', 'Error writing poll')) } + } else { + showError(t('polls', 'Title must not be empty!')) } }, |