Skip to content
Snippets Groups Projects
Commit 6a201fab authored by CazSaa's avatar CazSaa
Browse files

Fix tracker goal empty post bug

parent dd721527
Branches
No related tags found
No related merge requests found
......@@ -100,7 +100,7 @@ export default {
return {
dashOffsetFull: 210,
dashOffsetEmpty: 961,
goal: 0
goal: '0'
}
},
computed: {
......@@ -116,8 +116,11 @@ export default {
},
watch: {
async goal() {
if (this.goal === undefined || this.goal === null) {
return
}
const goalResponse = await this.$axios.post('/api/goal', {
amount: this.goal
amount: parseInt(this.goal)
})
this.$store.commit('setGoal', goalResponse.data.goal)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment