actually fix isNotUniswap logic

This commit is contained in:
Noah Zinsmeister 2021-05-04 22:32:01 -04:00
parent 2339817170
commit bd817083c9
No known key found for this signature in database
GPG Key ID: 83022DD49188C9F2

@ -113,7 +113,7 @@ function V2PairMigration({
const theme = useTheme()
const pairFactory = useSingleCallResult(pair, 'factory')
const isNotUniswap = pairFactory.result?.[0] !== FACTORY_ADDRESS ?? false
const isNotUniswap = pairFactory.result?.[0] && pairFactory.result[0] !== FACTORY_ADDRESS
const deadline = useTransactionDeadline() // custom from users settings
const blockTimestamp = useCurrentBlockTimestamp()