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