We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 656d674 commit 2a1fa4dCopy full SHA for 2a1fa4d
src/data/karma.ts
@@ -58,7 +58,7 @@ export const getKarmaForAllMembers = async (db: Db) => {
58
};
59
60
export const getEmojiForKarmaValue = (value: number) => {
61
- const adjustedValue = Math.floor(Math.sqrt(value + 1) - 1);
+ const adjustedValue = Math.floor(Math.log(value + 1));
62
const idx = Math.min(karmaEmojis.length - 1, adjustedValue);
63
return karmaEmojis[idx];
64
0 commit comments