Skip to content

Commit b67a7ab

Browse files
committed
fix(ui): 🚑 check if dir is sent or outgoing
1 parent 4bdbd68 commit b67a7ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/transactions-list.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ const initialState = {
7575
let name = cnt?.info?.name
7676
let addr = tx?.vout?.[0]?.scriptPubKey?.addresses?.[0]
7777

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

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

0 commit comments

Comments
 (0)