From adc55748c06528fce5c461e49f9efd2d3f3b1019 Mon Sep 17 00:00:00 2001 From: Denis Davidyuk Date: Thu, 15 Jul 2021 07:31:49 +0300 Subject: [PATCH] fix: omit exceptions thrown by await tip/retip endpoints for v1 --- src/store/modules/aeternity.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/store/modules/aeternity.js b/src/store/modules/aeternity.js index c51ffd0d1..578dc4fe5 100644 --- a/src/store/modules/aeternity.js +++ b/src/store/modules/aeternity.js @@ -339,7 +339,9 @@ export default { } await contractV1.methods.tip(url, title, { amount }); - return dispatch('backend/awaitTip', null, { root: true }); + return dispatch('backend/awaitTip', null, { root: true }) + // TODO: remove after solving https://github.com/aeternity/tipping-community-backend/issues/371 + .catch(console.error); }, async retip({ dispatch, @@ -366,7 +368,9 @@ export default { if (contractAddress === process.env.VUE_APP_CONTRACT_V1_ADDRESS) { await contractV1.methods.retip(Number(id.split('_')[0]), { amount }); - return dispatch('backend/awaitRetip', null, { root: true }); + return dispatch('backend/awaitRetip', null, { root: true }) + // TODO: remove after solving https://github.com/aeternity/tipping-community-backend/issues/371 + .catch(console.error); } if (contractAddress === process.env.VUE_APP_CONTRACT_V2_ADDRESS) {