get send coin partially working again

This commit is contained in:
Moriz Wahl 2023-03-15 08:39:05 +01:00
parent 761ff80b97
commit 74d2d43ab2
3 changed files with 6 additions and 6 deletions

View File

@ -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,
})

View File

@ -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)
}
`

View File

@ -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: '',
}