Skip to content

Commit

Permalink
fix: APP-447 remove dropdown when only one crypto currency available (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
r41ph authored Feb 11, 2025
1 parent ecbf0fb commit 8c5378b
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ export const CurrencyInput = ({
sx={{
'& .MuiInputBase-root': {
border: 'none',
paddingRight: theme => (card ? theme.spacing(5) : 0),
paddingRight: theme =>
card || cryptoCurrencies.length === 1 ? theme.spacing(5) : 0,
'& input': {
overflow: 'hidden',
textOverflow: 'ellipsis',
Expand All @@ -210,7 +211,7 @@ export const CurrencyInput = ({
},
}}
endAdornment={
card ? (
card || cryptoCurrencies.length === 1 ? (
<DenomIconWithCurrency
baseDenom={currency?.askBaseDenom}
displayDenom={displayDenom}
Expand Down

0 comments on commit 8c5378b

Please sign in to comment.