fix
This commit is contained in:
@@ -11,6 +11,9 @@ export interface SendModalToken {
|
|||||||
logo?: string
|
logo?: string
|
||||||
color: string
|
color: string
|
||||||
bal: string
|
bal: string
|
||||||
|
/** Network this balance row belongs to. Tickers repeat across chains
|
||||||
|
* (USDT on ETH/SOL/TRX/…), so the "Макс" lookup must match on it too. */
|
||||||
|
chain?: Chain
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
@@ -57,7 +60,9 @@ export function SendModal({ open, onClose, network, tokens = [], initialToken =
|
|||||||
const isNative = selectedToken === ''
|
const isNative = selectedToken === ''
|
||||||
const tokenLabel = isNative ? cfg.nativeSymbol : selectedToken
|
const tokenLabel = isNative ? cfg.nativeSymbol : selectedToken
|
||||||
const walletMatch = tokens.find(
|
const walletMatch = tokens.find(
|
||||||
(t) => t.ticker === (isNative ? cfg.nativeSymbol : selectedToken),
|
(t) =>
|
||||||
|
t.ticker === (isNative ? cfg.nativeSymbol : selectedToken) &&
|
||||||
|
(t.chain === undefined || t.chain === network),
|
||||||
)
|
)
|
||||||
|
|
||||||
// Estimated native-coin network fee for the current chain/speed. Shown at the
|
// Estimated native-coin network fee for the current chain/speed. Shown at the
|
||||||
|
|||||||
Reference in New Issue
Block a user