Skip to content

Commit 9417df9

Browse files
committed
fix: remove dropdown when only one crypto currency available
1 parent 04307c0 commit 9417df9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

web-marketplace/src/components/molecules/CreditsAmount/CurrencyInput.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,8 @@ export const CurrencyInput = ({
184184
sx={{
185185
'& .MuiInputBase-root': {
186186
border: 'none',
187-
paddingRight: theme => (card ? theme.spacing(5) : 0),
187+
paddingRight: theme =>
188+
card || cryptoCurrencies.length === 1 ? theme.spacing(5) : 0,
188189
'& input': {
189190
overflow: 'hidden',
190191
textOverflow: 'ellipsis',
@@ -210,7 +211,7 @@ export const CurrencyInput = ({
210211
},
211212
}}
212213
endAdornment={
213-
card ? (
214+
card || cryptoCurrencies.length === 1 ? (
214215
<DenomIconWithCurrency
215216
baseDenom={currency?.askBaseDenom}
216217
displayDenom={displayDenom}

0 commit comments

Comments
 (0)