Skip to content

Commit

Permalink
fix: omit exceptions thrown by await tip/retip endpoints for v1
Browse files Browse the repository at this point in the history
  • Loading branch information
davidyuk committed Jul 15, 2021
1 parent 8449e46 commit adc5574
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/store/modules/aeternity.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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) {
Expand Down

0 comments on commit adc5574

Please sign in to comment.