From d836fb537531b65399474892b6598b4ff99977ad Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Thu, 21 Apr 2022 13:30:51 +0200 Subject: [PATCH] remove code from TransactionLink --- .../src/components/TransactionLinks/TransactionLink.spec.js | 1 - frontend/src/components/TransactionLinks/TransactionLink.vue | 4 ---- 2 files changed, 5 deletions(-) diff --git a/frontend/src/components/TransactionLinks/TransactionLink.spec.js b/frontend/src/components/TransactionLinks/TransactionLink.spec.js index 2988f2026..b2d8f6f54 100644 --- a/frontend/src/components/TransactionLinks/TransactionLink.spec.js +++ b/frontend/src/components/TransactionLinks/TransactionLink.spec.js @@ -22,7 +22,6 @@ const mocks = { const propsData = { amount: '75', - code: 'c00000000c000000c0000', link: 'http://localhost/redeem/c00000000c000000c0000', holdAvailableAmount: '5.13109484759482747111', id: 12, diff --git a/frontend/src/components/TransactionLinks/TransactionLink.vue b/frontend/src/components/TransactionLinks/TransactionLink.vue index 29cadc1b0..63e610b26 100644 --- a/frontend/src/components/TransactionLinks/TransactionLink.vue +++ b/frontend/src/components/TransactionLinks/TransactionLink.vue @@ -74,7 +74,6 @@ export default { }, props: { amount: { type: String, required: true }, - code: { type: String, required: true }, link: { type: String, required: true }, holdAvailableAmount: { type: String, required: true }, id: { type: Number, required: true }, @@ -116,9 +115,6 @@ export default { decay() { return `${this.amount - this.holdAvailableAmount}` }, - link() { - return `${window.location.origin}/redeem/${this.code}` - }, }, }