bug fixes (#722)
This commit is contained in:
parent
e5c5bad7ab
commit
3c112b5746
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user