From 8449e46aeb6bb374e6c92914b25b70c6b3616ef6 Mon Sep 17 00:00:00 2001 From: Denis Davidyuk Date: Wed, 7 Jul 2021 11:25:57 +0300 Subject: [PATCH] refactor: consistent error handling --- src/components/FeedItemMenu.vue | 3 ++- src/components/SendComment.vue | 5 ++--- src/components/TipInputPopup.vue | 2 +- src/components/UserInfo.vue | 4 ++-- src/utils/index.js | 2 +- src/views/TipsAndComments.vue | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/components/FeedItemMenu.vue b/src/components/FeedItemMenu.vue index 41fccae0e..9d8ec42d8 100644 --- a/src/components/FeedItemMenu.vue +++ b/src/components/FeedItemMenu.vue @@ -85,12 +85,13 @@ export default { body: this.$t('components.tipRecords.TipRecord.claimBodySuccess'), }); this.resolve(); - } catch (e) { + } catch (error) { await this.$store.dispatch('modals/open', { name: 'failure', title: this.$t('components.tipRecords.TipRecord.claimTitle'), body: this.$t('components.tipRecords.TipRecord.claimBodyFailure'), }); + console.error(error); } }, async pinOrUnPinTip() { diff --git a/src/components/SendComment.vue b/src/components/SendComment.vue index 64710f987..e10e1c74d 100644 --- a/src/components/SendComment.vue +++ b/src/components/SendComment.vue @@ -15,7 +15,6 @@