@ -113,7 +113,7 @@ export default function BuildQuote({
const toTokenIsNotEth =
selectedToToken ? . address &&
selectedToToken ? . address !== ETH _SWAPS _TOKEN _OBJECT . address ;
const occurances = Number ( selectedToToken ? . occurances || 0 ) ;
const {
address : fromTokenAddress ,
symbol : fromTokenSymbol ,
@ -376,12 +376,14 @@ export default function BuildQuote({
/ >
< / d i v >
{ toTokenIsNotEth &&
( selectedToToken . occurances === 1 ? (
( occurances < 2 ? (
< ActionableMessage
message = {
< div className = "build-quote__token-verification-warning-message" >
< div className = "build-quote__bold" >
{ t ( 'swapTokenVerificationOnlyOneSource' ) }
{ occurances === 1
? t ( 'swapTokenVerificationOnlyOneSource' )
: t ( 'swapTokenVerificationNoSource' ) }
< / d i v >
< div >
{ t ( 'verifyThisTokenOn' , [
@ -416,9 +418,7 @@ export default function BuildQuote({
className = "build-quote__bold"
key = "token-verification-bold-text"
>
{ t ( 'swapTokenVerificationSources' , [
selectedToToken . occurances ,
] ) }
{ t ( 'swapTokenVerificationSources' , [ occurances ] ) }
< / s p a n >
{ t ( 'swapTokenVerificationMessage' , [
< a
@ -465,9 +465,7 @@ export default function BuildQuote({
! selectedToToken ? . address ||
Number ( maxSlippage ) === 0 ||
Number ( maxSlippage ) > MAX _ALLOWED _SLIPPAGE ||
( toTokenIsNotEth &&
selectedToToken . occurances === 1 &&
! verificationClicked )
( toTokenIsNotEth && occurances < 2 && ! verificationClicked )
}
hideCancel
showTermsOfService