This commit is contained in:
Lawrence Forman
2020-03-06 16:55:23 -05:00
parent 6ccadcb928
commit f901c401b7

View File

@@ -211,6 +211,7 @@ export const samplerOperations = {
}
const flatSortedSamples = samples
.reduce((acc, v) => acc.concat(...v))
.filter(v => !v.output.isZero())
.sort((a, b) => a.output.comparedTo(b.output));
if (flatSortedSamples.length === 0) {
return new BigNumber(0);