From 74d2d43ab2d098841e999476cd398dee33dda908 Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Wed, 15 Mar 2023 08:39:05 +0100 Subject: [PATCH] get send coin partially working again --- frontend/src/components/GddSend/TransactionForm.vue | 6 +++--- frontend/src/graphql/mutations.js | 4 ++-- frontend/src/pages/Send.vue | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/frontend/src/components/GddSend/TransactionForm.vue b/frontend/src/components/GddSend/TransactionForm.vue index a4e527d95..9cc696878 100644 --- a/frontend/src/components/GddSend/TransactionForm.vue +++ b/frontend/src/components/GddSend/TransactionForm.vue @@ -140,7 +140,7 @@ export default { }, props: { balance: { type: Number, default: 0 }, - email: { type: String, default: '' }, + identifier: { type: String, default: '' }, amount: { type: Number, default: 0 }, memo: { type: String, default: '' }, selected: { type: String, default: 'send' }, @@ -148,7 +148,7 @@ export default { data() { return { form: { - email: this.email, + email: this.identifier, amount: this.amount ? String(this.amount) : '', memo: this.memo, }, @@ -163,7 +163,7 @@ export default { onSubmit() { this.$emit('set-transaction', { selected: this.radioSelected, - email: this.form.email, + identifier: this.form.email, amount: Number(this.form.amount.replace(',', '.')), memo: this.form.memo, }) diff --git a/frontend/src/graphql/mutations.js b/frontend/src/graphql/mutations.js index 0f173d3b9..f1c920611 100644 --- a/frontend/src/graphql/mutations.js +++ b/frontend/src/graphql/mutations.js @@ -69,8 +69,8 @@ export const createUser = gql` ` export const sendCoins = gql` - mutation($email: String!, $amount: Decimal!, $memo: String!) { - sendCoins(email: $email, amount: $amount, memo: $memo) + mutation($identifier: String!, $amount: Decimal!, $memo: String!) { + sendCoins(identifier: $identifier, amount: $amount, memo: $memo) } ` diff --git a/frontend/src/pages/Send.vue b/frontend/src/pages/Send.vue index 65677ecdd..f8a09ee29 100644 --- a/frontend/src/pages/Send.vue +++ b/frontend/src/pages/Send.vue @@ -62,7 +62,7 @@ import TransactionResultLink from '@/components/GddSend/TransactionResultLink' import { sendCoins, createTransactionLink } from '@/graphql/mutations.js' const EMPTY_TRANSACTION_DATA = { - email: '', + identifier: '', amount: 0, memo: '', }