From 767ce8646f855aa86bb923d71844975a37dd9a2b Mon Sep 17 00:00:00 2001 From: Noah Zinsmeister Date: Tue, 30 Jul 2019 10:45:50 -0400 Subject: [PATCH] allowing leading dot slippage (#381) --- src/components/TransactionDetails/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/TransactionDetails/index.js b/src/components/TransactionDetails/index.js index 160eb65027..b38b58efbb 100644 --- a/src/components/TransactionDetails/index.js +++ b/src/components/TransactionDetails/index.js @@ -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) }