Force reward value to 0 when empty field (#11564)
This commit is contained in:
@@ -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', {
|
||||
|
||||
Reference in New Issue
Block a user