Skip to content

Commit 3990151

Browse files
committed
Fix disabled amount inputs when no available quotes
This is a bug. The amount inputs should not remain disabled when max quote requests return no quote results.
1 parent 2f4af27 commit 3990151

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/components/scenes/RampCreateScene.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -616,10 +616,11 @@ export const RampCreateScene: React.FC<Props> = (props: Props) => {
616616
}
617617

618618
const fiatInputDisabled =
619-
'max' in exchangeAmount || amountTypeSupport.onlyCrypto
619+
('max' in exchangeAmount && sortedQuotes.length > 0) ||
620+
amountTypeSupport.onlyCrypto
620621
const cryptoInputDisabled =
621622
isLoadingPersistedCryptoSelection ||
622-
'max' in exchangeAmount ||
623+
('max' in exchangeAmount && sortedQuotes.length > 0) ||
623624
amountTypeSupport.onlyFiat
624625

625626
// Render trade form view

0 commit comments

Comments
 (0)