Commit 3c112b57 authored by Ian Lapham's avatar Ian Lapham Committed by GitHub

bug fixes (#722)

parent e5c5bad7
......@@ -72,7 +72,7 @@ function CreatePool({ history }) {
{token0?.symbol}{' '}
</Text>
<TYPE.darkGray fontWeight={500} fontSize={16} marginLeft={'8px'}>
{token0.symbol === 'ETH' && '(default)'}
{token0?.symbol === 'ETH' && '(default)'}
</TYPE.darkGray>
</Row>
</ButtonDropwdownLight>
......
......@@ -350,6 +350,9 @@ function SearchModal({
const token0 = allTokens[allPairs[pairAddress].token0]
const token1 = allTokens[allPairs[pairAddress].token1]
const balance = allBalances?.[account]?.[pairAddress]?.toSignificant(6)
const zeroBalance =
allBalances?.[account]?.[pairAddress]?.raw &&
JSBI.equal(allBalances?.[account]?.[pairAddress].raw, JSBI.BigInt(0))
return (
<MenuItem
key={i}
......@@ -374,7 +377,7 @@ function SearchModal({
onDismiss()
}}
>
{balance ? 'Manage' : 'Join'}
{balance ? (zeroBalance ? 'Join' : 'Manage') : 'Join'}
</ButtonPrimary>
</MenuItem>
)
......
......@@ -67,7 +67,7 @@ const StyledSlider = withStyles({
})(Slider)
export default function InputSlider({ value, onChange, override }) {
const [internalVal, setInternalVal] = useState(0)
const [internalVal, setInternalVal] = useState(100)
const debouncedInternalValue = useDebounce(internalVal, 10)
function handleChange(e, val) {
......
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