allowing leading dot slippage (#381)

This commit is contained in:
Noah Zinsmeister 2019-07-30 10:45:50 -04:00 committed by GitHub
parent 8d0b8e32a4
commit 767ce8646f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -288,7 +288,6 @@ const ValueWrapper = styled.span`
background-color: ${({ theme }) => darken(0.04, theme.concreteGray)};
border-radius: 12px;
font-variant: tabular-nums;
vertical
`
export default function TransactionDetails(props) {
@ -503,7 +502,7 @@ export default function TransactionDetails(props) {
setWarningType(WARNING_TYPE.none)
props.setcustomSlippageError('valid')
if (slippageValue === '') {
if (slippageValue === '' || slippageValue === '.') {
props.setcustomSlippageError('invalid')
return setWarningType(WARNING_TYPE.emptyInput)
}