Skip to content

Commit 86b02a7

Browse files
fix(kleros-sdk): fix-potential-un-safe-number-casting
1 parent f765960 commit 86b02a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kleros-sdk/src/dataMappings/utils/populateTemplate.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const populateTemplate = (mustacheTemplate: string, data: any): DisputeDe
1414
// Filter out any existing answer with id 0 and add our standard Refuse to Arbitrate option
1515
(dispute as DisputeDetails).answers = [
1616
RefuseToArbitrateAnswer,
17-
...((dispute as DisputeDetails).answers.filter((answer) => answer.id && Number(answer.id) !== 0) || []),
17+
...((dispute as DisputeDetails).answers.filter((answer) => answer.id && BigInt(answer.id) !== BigInt(0)) || []),
1818
];
1919

2020
return dispute;

0 commit comments

Comments
 (0)