Skip to content

Commit 963402a

Browse files
authored
Fix calculation
1 parent c53d2e7 commit 963402a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/store/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ export default createStore({
228228
state.user.rating = Math.max(
229229
state.user.rating -
230230
Math.sqrt(Math.max(state.user.rating, 0)) *
231-
Math.log(Math.max(i + 1, 1)),
231+
(1 + Math.log(Math.max(i + 1, 1))),
232232
0,
233233
); //decrease user rating for each day of inactivity
234234
}

0 commit comments

Comments
 (0)