diff --git a/index.html b/index.html
index b29efe2..908a48c 100644
--- a/index.html
+++ b/index.html
@@ -412,14 +412,14 @@
case 'tokenswap':
renderElem(
document.getElementById('participant_container'),
- html`${
- Object.keys(contractParticipants)
- .map(participant => render.participantCard({
- accepting_token: contractInfo.accepting_token,
- selling_token: contractInfo.selling_token,
- ...contractParticipants[participant]}
- ))
- }`
+ html`${Object.keys(contractParticipants)
+ .map(participant => render.participantCard({
+ accepting_token: contractInfo.accepting_token,
+ selling_token: contractInfo.selling_token,
+ ...contractParticipants[participant]
+ }
+ ))
+ }`
)
break;
default:
@@ -722,14 +722,20 @@
Sender
${sender}
-
-
-
Amount
- ${formatAmount(amount, 'usd')}
-
+ ${receiver ? html`
+
+ `: ''
+ }
+ ${amount ? html`
+
+
Amount
+ ${formatAmount(amount, 'usd')}
+
+ `: ''
+ }
FLO Data
@@ -944,8 +950,8 @@
`;
},
- participantCard(details){
- const {participantFloAddress, participationAmount,swapAmount,swapPrice,transactionHash,accepting_token, selling_token} = details;
+ participantCard(details) {
+ const { participantFloAddress, participationAmount, swapAmount, swapPrice, transactionHash, accepting_token, selling_token } = details;
return html`
${participantFloAddress} swapped
@@ -1532,8 +1538,8 @@
let transactionHash = transaction.transactionHash,
{ flodata, tokenAmount, tokenIdentification, type, nftHash } = transaction.parsedFloData,
{ blockheight, vin, vout, confirmations } = transaction.transactionDetails;
- let receiver = "",
- sender = vin[0].addr;
+ let sender = vin[0].addr;
+ let receiver = sender
for (let i = 0; i < vout.length; i++) {
if (vout[i]["scriptPubKey"]["addresses"][0] !== vin[0]["addr"]) {
receiver = vout[i]["scriptPubKey"]["addresses"][0];