Bug fix
This commit is contained in:
parent
6949b0e4e0
commit
c6898ab830
@ -749,6 +749,7 @@
|
|||||||
},
|
},
|
||||||
participantCard(details) {
|
participantCard(details) {
|
||||||
const { participantFloAddress, tokenIdentification, userChoice, tokenAmount, participationAmount, swapAmount, swapPrice, transactionHash, acceptingToken, sellingToken } = details;
|
const { participantFloAddress, tokenIdentification, userChoice, tokenAmount, participationAmount, swapAmount, swapPrice, transactionHash, acceptingToken, sellingToken } = details;
|
||||||
|
console.log(details)
|
||||||
if (participationAmount) {
|
if (participationAmount) {
|
||||||
return html`
|
return html`
|
||||||
<li class="flex participant">
|
<li class="flex participant">
|
||||||
@ -798,7 +799,8 @@
|
|||||||
</li>
|
</li>
|
||||||
`;
|
`;
|
||||||
} else {
|
} else {
|
||||||
return html`Unknown participant type`
|
return ''
|
||||||
|
console.warn(`Unknown participant type`)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
depositCard(details) {
|
depositCard(details) {
|
||||||
@ -1648,7 +1650,9 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (const participant in consolidatedParticipants) {
|
for (const participant in consolidatedParticipants) {
|
||||||
participants.push(render.participantCard(consolidatedParticipants[participant]))
|
const participantCard = render.participantCard(consolidatedParticipants[participant])
|
||||||
|
if (participantCard)
|
||||||
|
participants.push(participantCard)
|
||||||
if (consolidatedParticipants[participant].winningAmount)
|
if (consolidatedParticipants[participant].winningAmount)
|
||||||
winners.push(render.contractChoiceCard(consolidatedParticipants[participant]))
|
winners.push(render.contractChoiceCard(consolidatedParticipants[participant]))
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user