Skip to content
Snippets Groups Projects
Commit 7008a9e3 authored by Erik Borgeteien Hansen's avatar Erik Borgeteien Hansen
Browse files

validate rating

parent 09b0b60f
No related branches found
No related tags found
1 merge request!117Rating fix
Pipeline #181269 failed
......@@ -137,6 +137,8 @@ export default {
);
if (isNaN(maybeRating)) this.rating = NaN;
else this.rating = maybeRating;
if (this.rating > 5) this.rating = 5;
if (this.rating < 1) this.rating = 1;
this.communityID = this.$route.params.communityID;
},
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment