diff --git a/src/pages/ReceivePage.vue b/src/pages/ReceivePage.vue index 8d51ee5..b6bc699 100644 --- a/src/pages/ReceivePage.vue +++ b/src/pages/ReceivePage.vue @@ -561,23 +561,6 @@ export default defineComponent({ displayReceivedTransaction(transaction) } - function updateClaimTxnAttr (txid) { - const posId = walletStore.posId - const key = `voucher_claim_${posId}` - - const payload = { - wallet_hash: walletStore.merchantInfo?.walletHash, - value: "Voucher Claim", - remove: false, - txid, - key - } - const watchtowerTxnAttrUrl = `${process.env.WATCHTOWER_API}/transactions/attributes/` - axios.post(watchtowerTxnAttrUrl, payload) - .then(response => console.log('Added transaction attribute as voucher claim: ', response)) - .catch(err => console.log('Error on adding transaction attribute as voucher claim: ', err)) - } - function processLiveUpdate (data) { const updateType = data?.update_type let message = null @@ -598,10 +581,6 @@ export default defineComponent({ qrScanned.value = false refreshQrCountdown() } - else if (updateType === 'voucher_claimed') { - if (!data?.txid || !data?.category) return - updateClaimTxnAttr(data.txid) - } if (message) { $q.notify({