Skip to content

Commit

Permalink
410/empty from field (#440)
Browse files Browse the repository at this point in the history
* Don't show input when currency is undefined rather than null

* Show label row even if empty
  • Loading branch information
alfetopito authored Apr 22, 2022
1 parent 71d99f2 commit f29e974
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ export default function CurrencyInputPanel({
<Container hideInput={hideInput} showAux={!!label}>
<InputRow style={hideInput ? { padding: '0', borderRadius: '8px' } : {}} selected={!onCurrencySelect}>
<CurrencySelect
visible={currency !== null}
visible={currency !== undefined}
selected={!!currency}
hideInput={hideInput}
className="open-currency-select-button"
Expand Down Expand Up @@ -543,7 +543,7 @@ export default function CurrencyInputPanel({
/>
)}
</InputRow>
{!hideInput && !hideBalance && currency && (
{!hideInput && !hideBalance && currency !== undefined && (
<FiatRow>
<RowBetween>
{account ? (
Expand Down

0 comments on commit f29e974

Please sign in to comment.