Skip to content

Commit

Permalink
Merge pull request #566 from /issues/524
Browse files Browse the repository at this point in the history
issues/524 resolved
  • Loading branch information
Pratap2018 authored Nov 3, 2021
2 parents 54d2efb + bc97312 commit a1a71b8
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 7 deletions.
20 changes: 16 additions & 4 deletions frontend/src/views/admin/CreateProjectSlide/EventActionCongif.vue
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,10 @@ export default {
}else if(this.selected.type === 'DISCORD_JOIN' && isdiscordLink(this.selected.value)){
isvalid = false
this.notifyErr(`Invalid Invite Link`)
} else if(isNaN(parseInt(this.selected.score))){
}else if(this.selected.score===""){
isvalid=false
this.notifyErr(`Please Enter the Score`)
} else if(isNaN(parseInt(this.selected.score))){
isvalid=false
this.notifyErr(`Score should be a number`)
} else if(parseInt(this.selected.score)<0){
Expand Down Expand Up @@ -308,7 +311,10 @@ export default {
isvalid=false
this.notifyErr(`Please Enter Valid Url`)
}
else if(isNaN(parseInt(this.selected.score))){
else if(this.selected.score===""){
isvalid=false
this.notifyErr(`Please Enter the Score`)
} else if(isNaN(parseInt(this.selected.score))){
isvalid=false
this.notifyErr(`Score should be a number`)
}else if(parseInt(this.selected.score)<0){
Expand All @@ -333,7 +339,10 @@ export default {
}else if(isValidURL(this.selected.title)){
isvalid=false
this.notifyErr(`Do not put url in title`)
} else if(isNaN(parseInt(this.selected.score))){
} else if(this.selected.score===""){
isvalid=false
this.notifyErr(`Please Enter the Score`)
} else if(isNaN(parseInt(this.selected.score))){
isvalid=false
this.notifyErr(`Score should be a number`)
}else if(parseInt(this.selected.score)<0){
Expand All @@ -357,7 +366,10 @@ export default {
}else if(isValidURL(this.selected.title)){
isvalid=false
this.notifyErr(`Do not put url in title`)
}else if(isNaN(parseInt(this.selected.score))){
}else if(this.selected.score===""){
isvalid=false
this.notifyErr(`Please Enter the Score`)
} else if(isNaN(parseInt(this.selected.score))){
isvalid=false
this.notifyErr(`Score should be a number`)
}else if(parseInt(this.selected.score)<0){
Expand Down
8 changes: 5 additions & 3 deletions frontend/src/views/admin/Events.vue
Original file line number Diff line number Diff line change
Expand Up @@ -620,12 +620,14 @@ export default {
if (this.isLogoUrlValid() !== true) {
return this.notifyErr(this.isLogoUrlValid());
}
if(this.project.refereePoint==="" || this.project.referralPoint===""){
return this.notifyErr(` Please Enter Refree Point and Referral Point`);
}
if(isNaN(parseInt(this.project.refereePoint)) || isNaN(parseInt(this.project.referralPoint))){
return this.notifyErr(`Refree Point or Referral Point Should be number`);
return this.notifyErr(`Refree Point and Referral Point Should be number`);
}
if((parseInt(this.project.refereePoint)<0) || (parseInt(this.project.referralPoint)<0)){
return this.notifyErr(`Refree Point or Referral Point Should be Positive number`);
return this.notifyErr(`Refree Point and Referral Point Should be Positive number`);
}
this.isLoading = true;
Expand Down

0 comments on commit a1a71b8

Please sign in to comment.