Skip to content

Commit

Permalink
Update main.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
underoot authored Nov 21, 2023
1 parent 857365d commit 6b85bfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const get_skin_tone_number = (key: string) => {
}

function score_to_level(score: number) {
return Math.floor(score / 16) + 1
return Math.min(Math.floor(score / 16) + 1, 3)
}

const EMOJI_MERGE_MAP = new Map([
Expand Down

0 comments on commit 6b85bfe

Please sign in to comment.