Skip to content

Commit

Permalink
fix(step-payout): set tokens to zero if null (#2610)
Browse files Browse the repository at this point in the history
  • Loading branch information
arsenijesavic authored Apr 4, 2024
1 parent 4fb2d11 commit 2a2aeb3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pages/proposals/create/StepPayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ export default {
},
set (value) {
this.$store.commit('proposals/setPeg', parseFloat(value))
this.$store.commit('proposals/setPeg', parseFloat(value || 0))
}
},
Expand All @@ -184,7 +184,7 @@ export default {
},
set (value) {
this.$store.commit('proposals/setReward', parseFloat(value))
this.$store.commit('proposals/setReward', parseFloat(value || 0))
}
},
Expand All @@ -194,7 +194,7 @@ export default {
},
set (value) {
this.$store.commit('proposals/setVoice', parseFloat(value))
this.$store.commit('proposals/setVoice', parseFloat(value || 0))
}
},
Expand Down

0 comments on commit 2a2aeb3

Please sign in to comment.