Skip to content

Commit

Permalink
fix(swap-2.0-lb): lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip London committed Oct 28, 2020
1 parent 3d9fda4 commit 2d4f6aa
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,11 @@ const Checkout: React.FC<InjectedFormProps<{}, Props> & Props> = props => {
? props.payment.effectiveBalance
: props.BASE.balance

const maxAmountSilver =
!!(props.userData.tiers.current === 1 &&
const maxAmountSilver = !!(
props.userData.tiers.current === 1 &&
amtError === 'ABOVE_MAX' &&
props.limits.maxPossibleOrder < props.limits.maxOrder)
props.limits.maxPossibleOrder < props.limits.maxOrder
)

const handleMinMaxClick = () => {
const value = amtError === 'BELOW_MIN' ? min : max
Expand All @@ -120,6 +121,7 @@ const Checkout: React.FC<InjectedFormProps<{}, Props> & Props> = props => {
const handleSubmit = e => {
e.preventDefault()
props.swapActions.setStep({ step: 'PREVIEW_SWAP' })
}

const isQuoteFailed = Remote.Failure.is(props.quoteR)

Expand Down

0 comments on commit 2d4f6aa

Please sign in to comment.