Commit 334e137f authored by Zach Pomerantz's avatar Zach Pomerantz Committed by GitHub

fix: empty toolbar for empty input (#3584)

parent eb6c4d46
......@@ -47,13 +47,15 @@ export default memo(function Toolbar({ disabled }: { disabled?: boolean }) {
if (isRouteLoading) {
return <Caption.LoadingTrade />
}
if (!trade?.swaps) {
if (trade) {
if (!trade.swaps) {
return <Caption.InsufficientLiquidity />
}
if (trade.inputAmount && trade.outputAmount) {
return <Caption.Trade trade={trade} outputUSDC={outputUSDC} impact={impact} />
}
}
}
return <Caption.Empty />
}, [
......
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