bug fixes (#722)

This commit is contained in:
Ian Lapham 2020-05-06 22:16:00 -04:00 committed by GitHub
parent e5c5bad7ab
commit 3c112b5746
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 3 deletions

@ -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) {