From c6898ab8308bf366187cfaa0a2cab88456a0bb5d Mon Sep 17 00:00:00 2001 From: sairaj mote Date: Wed, 11 Oct 2023 14:38:08 +0530 Subject: [PATCH] Bug fix --- index.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 64efdf0..41126b4 100644 --- a/index.html +++ b/index.html @@ -749,6 +749,7 @@ }, participantCard(details) { const { participantFloAddress, tokenIdentification, userChoice, tokenAmount, participationAmount, swapAmount, swapPrice, transactionHash, acceptingToken, sellingToken } = details; + console.log(details) if (participationAmount) { return html`
  • @@ -798,7 +799,8 @@
  • `; } else { - return html`Unknown participant type` + return '' + console.warn(`Unknown participant type`) } }, depositCard(details) { @@ -1648,7 +1650,9 @@ } } 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) winners.push(render.contractChoiceCard(consolidatedParticipants[participant])) }