From 97e2250781bb0ceb6f9add32427ed5cfac289837 Mon Sep 17 00:00:00 2001 From: Jon Tzeng Date: Thu, 23 Oct 2025 16:48:42 -0700 Subject: [PATCH] `RampCreateScene` not auto-populating a $500 buy amount --- src/components/scenes/RampCreateScene.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/scenes/RampCreateScene.tsx b/src/components/scenes/RampCreateScene.tsx index f2e1a6de689..8f20dcbd302 100644 --- a/src/components/scenes/RampCreateScene.tsx +++ b/src/components/scenes/RampCreateScene.tsx @@ -246,12 +246,12 @@ export const RampCreateScene: React.FC = (props: Props) => { if (fiatUsdRate == null) return let abort = false const applyInitial = async (): Promise => { - if (abort) return + if (abort || direction !== 'buy') return // Don't override if the user has started typing or fiat input is disabled if ( hasAppliedInitialAmount.current || amountTypeSupport.onlyCrypto || - 'empty' in exchangeAmount || + !('empty' in exchangeAmount) || lastUsedInput != null || shouldShowRegionSelect ) { @@ -287,7 +287,8 @@ export const RampCreateScene: React.FC = (props: Props) => { selectedFiatCurrencyCode, shouldShowRegionSelect, fiatUsdRate, - exchangeAmount + exchangeAmount, + direction ]) // Create rampQuoteRequest based on current form state