Skip to content

Commit 2a1fa4d

Browse files
committed
karma: nerf
1 parent 656d674 commit 2a1fa4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/data/karma.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export const getKarmaForAllMembers = async (db: Db) => {
5858
};
5959

6060
export const getEmojiForKarmaValue = (value: number) => {
61-
const adjustedValue = Math.floor(Math.sqrt(value + 1) - 1);
61+
const adjustedValue = Math.floor(Math.log(value + 1));
6262
const idx = Math.min(karmaEmojis.length - 1, adjustedValue);
6363
return karmaEmojis[idx];
6464
};

0 commit comments

Comments
 (0)