Allow margin swapping with no sell asset (#412)

This commit is contained in:
Bob van der Helm 2023-08-31 05:08:39 -03:00 committed by GitHub
parent e3b126b2f7
commit 3c128e90f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
import { HTMLAttributes, useMemo } from 'react'
import classNames from 'classnames'
import Accordion from 'components/Accordion'
import AccountBalancesTable from 'components/Account/AccountBalancesTable'
import AccountComposition from 'components/Account/AccountComposition'

View File

@ -29,7 +29,7 @@ function InputOverlay({ max, value, marginThreshold }: Props) {
{Array.from(Array(9).keys()).map((i) => (
<div key={`mark-${i}`} className={className.mark} />
))}
{marginThreshold && (
{marginThreshold !== undefined && (
<div
key='margin-mark'
className={className.marginMarkContainer}