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