Commit 536a5d99 authored by Justin Domingue's avatar Justin Domingue Committed by GitHub

fix: fix typo is getLiquidityMinted catch (#1663)

parent ffc20155
......@@ -161,7 +161,7 @@ export function useDerivedMintInfo(
try {
return pair.getLiquidityMinted(totalSupply, tokenAmountA, tokenAmountB)
} catch (error) {
if (error.InsufficientInputAmountError) {
if (error.isInsufficientInputAmountError) {
return CurrencyAmount.fromRawAmount(pair.liquidityToken, ZERO)
}
return undefined
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment