File tree 2 files changed +8
-8
lines changed
wormhole-connect/src/views/v2/TxHistory
2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,6 @@ const TxHistoryItem = (props: Props) => {
46
46
txHash,
47
47
amount,
48
48
amountUsd,
49
- recipient,
50
49
fromChain,
51
50
fromToken,
52
51
toChain,
@@ -63,8 +62,7 @@ const TxHistoryItem = (props: Props) => {
63
62
) ,
64
63
[ ] ,
65
64
) ;
66
- const { getTokenPrice, isFetchingTokenPrices, lastTokenPriceUpdate } =
67
- useTokens ( ) ;
65
+ const { getTokenPrice, lastTokenPriceUpdate } = useTokens ( ) ;
68
66
69
67
// Render details for the sent amount
70
68
const sentAmount = useMemo ( ( ) => {
@@ -132,15 +130,17 @@ const TxHistoryItem = (props: Props) => {
132
130
</ Stack >
133
131
</ Stack >
134
132
) ;
133
+ // ESLint complains that lastTokenPriceUpdate is unused/unnecessary here,
134
+ // but we want to recompute the price after we update conversion rates.
135
+ // eslint-disable-next-line react-hooks/exhaustive-deps
135
136
} , [
136
- isFetchingTokenPrices ,
137
137
lastTokenPriceUpdate ,
138
- receiveAmount ,
138
+ toChain ,
139
139
toToken ,
140
- recipient ,
140
+ receiveAmount ,
141
+ getTokenPrice ,
141
142
separator ,
142
143
theme . palette . text . secondary ,
143
- toChain ,
144
144
] ) ;
145
145
146
146
// Vertical line that connects sender and receiver token icons
Original file line number Diff line number Diff line change @@ -290,7 +290,7 @@ const WidgetItem = (props: Props) => {
290
290
</ Typography >
291
291
< Stack direction = "row" alignItems = "center" >
292
292
< Typography fontSize = { 14 } marginRight = "8px" >
293
- { `${ sdkAmount . display ( sdkAmount . truncate ( amount , 4 ) ) } ${
293
+ { `${ sdkAmount . display ( sdkAmount . truncate ( amount , 6 ) ) } ${
294
294
token . symbol
295
295
} `}
296
296
</ Typography >
You can’t perform that action at this time.
0 commit comments