Skip to content

Commit

Permalink
Fix null check in argumentScoreHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
sofvanh committed Jan 14, 2025
1 parent f92cc2f commit a59a918
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/src/analysis/argumentScoreHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ export async function getArgumentScores(graphId: string): Promise<Map<string, Sc


argumentScores.set(argumentId, {
consensus: consensus || undefined,
fragmentation: fragmentation || undefined,
consensus: consensus === null ? undefined : consensus,
fragmentation: fragmentation === null ? undefined : fragmentation,
clarity
});
});
Expand Down

0 comments on commit a59a918

Please sign in to comment.