fix: show own address for swap transactions in tx list #56

Closed
clawbot wants to merge 1 commits from fix/55-swap-show-own-address into main

View File

@@ -187,7 +187,9 @@ function renderTransactions(txs) {
let i = 0; let i = 0;
for (const tx of txs) { for (const tx of txs) {
const counterparty = const counterparty =
tx.direction === "sent" || tx.direction === "contract" tx.direction === "contract"
? tx.from
: tx.direction === "sent"
? tx.to ? tx.to
: tx.from; : tx.from;
const ensName = ensNameMap.get(counterparty) || null; const ensName = ensNameMap.get(counterparty) || null;