Skip to content

Commit

Permalink
chore: remove precision loss
Browse files Browse the repository at this point in the history
  • Loading branch information
ishowvel committed Nov 14, 2024
1 parent d080448 commit 5b71453
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/parser/content-evaluator-module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@ export class ContentEvaluatorModule extends BaseModule {
currentRelevance = relevancesByAi[currentComment.id];
}

const currentReward = this._getRewardForComment(currentComment, currentRelevance)
.mul(currentComment.score?.priority ?? 1)
.toDecimalPlaces(3);
const currentReward = this._getRewardForComment(currentComment, currentRelevance).mul(
currentComment.score?.priority ?? 1
);

currentComment.score = {
...(currentComment.score || { multiplier: 0 }),
Expand Down

0 comments on commit 5b71453

Please sign in to comment.