Skip to content

Commit

Permalink
fix(ui): 🚑 check if dir is sent or outgoing
Browse files Browse the repository at this point in the history
  • Loading branch information
jojobyte committed Apr 15, 2024
1 parent 4bdbd68 commit b67a7ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/transactions-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const initialState = {
let name = cnt?.info?.name
let addr = tx?.vout?.[0]?.scriptPubKey?.addresses?.[0]

if (tx?.dir !== 'sent') {
if (!['sent', 'outgoing'].includes(tx?.dir)) {
addr = tx?.vin?.[0]?.addr
}
if (tx.time) {
Expand All @@ -100,7 +100,7 @@ const initialState = {
let itemTitle = `Sent on`
let itemDir = `To <strong>${name}</strong>`

if (tx?.dir !== 'sent') {
if (!['sent', 'outgoing'].includes(tx?.dir)) {
itemTitle = `Received on`
itemDir = `From <strong>${name}</strong>`
itemCtrls = html`<aside class="inline row succ">
Expand Down

0 comments on commit b67a7ab

Please sign in to comment.