!isWinner

This commit is contained in:
Jaco Greeff 2021-03-28 09:15:48 +03:00
parent 3208dc69b7
commit e9e1f1d982
No known key found for this signature in database
GPG Key ID: 270FB2D05A05357C

View File

@ -33,10 +33,11 @@ function Auction ({ auctionInfo, campaigns, className, winningData }: Props): Re
asIs
? winners
: winners.map((w): WinnerData =>
campaigns.funds?.find(({ firstSlot, lastSlot, value }) =>
campaigns.funds?.find(({ firstSlot, isWinner, lastSlot, value }) =>
w.firstSlot.eq(firstSlot) &&
w.lastSlot.eq(lastSlot) &&
w.value.lt(value)
w.value.lt(value) &&
!isWinner
) || w
),
[campaigns]