Force reward value to 0 when empty field (#11564)

This commit is contained in:
Nik
2019-11-25 17:11:01 +01:00
committed by Matteo Pagliazzi
parent 91d75bae29
commit bfd960b7b6
@@ -1437,6 +1437,10 @@ export default {
this.task.group.sharedCompletion = this.sharedCompletion;
}
if (this.task.type === 'reward' && this.task.value === '') {
this.task.value = 0;
}
if (this.purpose === 'create') {
if (this.challengeId) {
const response = await this.$store.dispatch('tasks:createChallengeTasks', {