We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f765960 commit 86b02a7Copy full SHA for 86b02a7
kleros-sdk/src/dataMappings/utils/populateTemplate.ts
@@ -14,7 +14,7 @@ export const populateTemplate = (mustacheTemplate: string, data: any): DisputeDe
14
// Filter out any existing answer with id 0 and add our standard Refuse to Arbitrate option
15
(dispute as DisputeDetails).answers = [
16
RefuseToArbitrateAnswer,
17
- ...((dispute as DisputeDetails).answers.filter((answer) => answer.id && Number(answer.id) !== 0) || []),
+ ...((dispute as DisputeDetails).answers.filter((answer) => answer.id && BigInt(answer.id) !== BigInt(0)) || []),
18
];
19
20
return dispute;
0 commit comments