mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Fix incorrect destructuring, parseInt
- graphql schema expects an integer
This commit is contained in:
parent
6a98e5759f
commit
71bcf814db
@ -29,13 +29,13 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
submit() {
|
||||
const { goal, progress } = this
|
||||
const { goal, progress } = this.formData
|
||||
this.$apollo
|
||||
.mutate({
|
||||
mutation: UpdateDonations(),
|
||||
variables: {
|
||||
goal,
|
||||
progress,
|
||||
goal: parseInt(goal),
|
||||
progress: parseInt(progress),
|
||||
},
|
||||
})
|
||||
.then(() => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user