Skip to content

Commit

Permalink
底部统计数量忽略小于0.00001的数据
Browse files Browse the repository at this point in the history
  • Loading branch information
imsfc committed Oct 4, 2024
1 parent 749842a commit 9902c0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stores/modularFactoryComputedStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const makeNetValues = () => {

const getInputs = () => {
return netValues
.filter(({ netValue }) => netValue.lt(0))
.filter(({ netValue }) => netValue.lt(-0.00001))
.sort((a, b) => a.netValue.sub(b.netValue).toNumber())
.map(({ itemId, netValue }) => ({
itemId,
Expand All @@ -49,7 +49,7 @@ const makeNetValues = () => {

const getOutputs = () => {
return netValues
.filter(({ netValue }) => netValue.gt(0))
.filter(({ netValue }) => netValue.gt(0.00001))
.sort((a, b) => b.netValue.sub(a.netValue).toNumber())
.map(({ itemId, netValue }) => ({
itemId,
Expand Down

0 comments on commit 9902c0b

Please sign in to comment.