Fix incorrect destructuring, parseInt

- graphql schema expects an integer
This commit is contained in:
mattwr18 2019-11-12 12:08:19 +01:00
parent 6a98e5759f
commit 71bcf814db

View File

@ -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(() => {