@@ -87,9 +87,6 @@ export default function AppBox() {
87
87
updateTargetNativeBalance ,
88
88
] ) ;
89
89
90
- const sourceChainRef = useRef ( sourceChain ) ;
91
- const targetChainRef = useRef ( targetChain ) ;
92
-
93
90
const cross = bridgeInstance ?. getCrossInfo ( ) ;
94
91
const assetLimit = assetLimitOnTargetChain ?. amount ;
95
92
const assetSupply = targetAssetSupply ?. amount ;
@@ -166,13 +163,13 @@ export default function AppBox() {
166
163
fee . amount ,
167
164
feeBalanceOnSourceChain . currency . decimals ,
168
165
) } ${ feeBalanceOnSourceChain . currency . symbol } in your Sender on ${
169
- sourceChainRef . current . name
166
+ sourceChain . name
170
167
} to cover cross-chain fees.`} </ span >
171
168
</ div >
172
169
) ;
173
170
}
174
171
return null ;
175
- } , [ bridgeInstance , feeBalanceOnSourceChain ] ) ;
172
+ } , [ bridgeInstance , feeBalanceOnSourceChain , sourceChain ] ) ;
176
173
177
174
const existentialAlertOnSourceChain = useMemo ( ( ) => {
178
175
if (
@@ -214,13 +211,13 @@ export default function AppBox() {
214
211
existentialDepositOnTargetChain . amount ,
215
212
existentialDepositOnTargetChain . currency . decimals ,
216
213
) } ${ existentialDepositOnTargetChain . currency . symbol } in your Recipient on ${
217
- targetChainRef . current . name
214
+ targetChain . name
218
215
} to keep an account open.`} </ span >
219
216
</ div >
220
217
) ;
221
218
}
222
219
return null ;
223
- } , [ targetNativeBalance , existentialDepositOnTargetChain ] ) ;
220
+ } , [ targetNativeBalance , existentialDepositOnTargetChain , targetChain ] ) ;
224
221
225
222
const disabledSend =
226
223
! sender ?. address ||
0 commit comments