Skip to content

Commit

Permalink
Add rating utils
Browse files Browse the repository at this point in the history
  • Loading branch information
kadik23 committed Aug 17, 2024
1 parent 600a0f8 commit 3346cc7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Frontend/src/Utils/getRatingStatus.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
function getRatingStatus(rating) {
if (rating < 5.0) return 'Bad';
if (rating < 6.0) return 'Alright';
if (rating < 7.0) return 'Good';
return 'Excellent';
}

export default getRatingStatus

0 comments on commit 3346cc7

Please sign in to comment.