Skip to content

Commit 5fc1483

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 f4ca4a4 commit 5fc1483

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
@@ -638,10 +638,11 @@ export const RampCreateScene: React.FC<Props> = (props: Props) => {
638638
}
639639

640640
const fiatInputDisabled =
641-
'max' in exchangeAmount || amountTypeSupport.onlyCrypto
641+
('max' in exchangeAmount && sortedQuotes.length > 0) ||
642+
amountTypeSupport.onlyCrypto
642643
const cryptoInputDisabled =
643644
isLoadingPersistedCryptoSelection ||
644-
'max' in exchangeAmount ||
645+
('max' in exchangeAmount && sortedQuotes.length > 0) ||
645646
amountTypeSupport.onlyFiat
646647

647648
// Render trade form view

0 commit comments

Comments
 (0)