Commit bceeac3 1 parent 1c01b56 commit bceeac3 Copy full SHA for bceeac3
File tree 1 file changed +4
-2
lines changed
suite-native/transactions/src/components/TransactionDetail
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -55,13 +55,15 @@ export const TransactionDetailHeader = ({
55
55
const isPendingTx = isPending ( transaction ) ;
56
56
const isFailedTx = transaction . type === 'failed' ;
57
57
const signValue = getTransactionValueSign ( tokenTransfer ?. type ?? transaction . type ) ;
58
+ const isTokenOnlyTransaction = transaction . amount === '0' && transaction . tokens . length !== 0 ;
59
+ const txType = isTokenOnlyTransaction ? transaction . tokens [ 0 ] . type : type ;
58
60
59
61
return (
60
62
< DiscreetTextTrigger >
61
63
< Box alignItems = "center" >
62
64
< VStack spacing = "sp16" alignItems = "center" justifyContent = "center" >
63
65
< TransactionIcon
64
- transactionType = { type }
66
+ transactionType = { txType }
65
67
isAnimated = { isPendingTx }
66
68
containerSize = { ICON_SIZE }
67
69
iconSize = "extraLarge"
@@ -86,7 +88,7 @@ export const TransactionDetailHeader = ({
86
88
)
87
89
) }
88
90
89
- < Box >
91
+ < Box flexDirection = "row" >
90
92
{ ! isFailedTx && (
91
93
< SignValueFormatter
92
94
color = "textDefault"
You can’t perform that action at this time.
0 commit comments