Skip to content

Commit

Permalink
Update: change the prop name
Browse files Browse the repository at this point in the history
  • Loading branch information
mmakwe-onyeka committed Apr 12, 2024
1 parent 621e58b commit ce06131
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export default {
/**
* Max amount of ratings to be shown
*/
countThreshold: {
maxDisplayedRatings: {
type: Number,
default: 200
},
Expand Down Expand Up @@ -168,7 +168,7 @@ export default {
return Number.parseFloat(this.mean).toFixed(1);
},
formattedCount () {
return this.count > this.countThreshold ? `${this.countThreshold}+` : this.count;
return this.count > this.maxDisplayedRatings ? `${this.maxDisplayedRatings}+` : this.count;
}
}
};
Expand Down

0 comments on commit ce06131

Please sign in to comment.