allowing leading dot slippage (#381)
This commit is contained in:
parent
8d0b8e32a4
commit
767ce8646f
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user