Skip to content

Commit e911c63

Browse files
committed
Flip the amount line for sell
1 parent 70c579e commit e911c63

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/scenes/RampSelectOptionScene.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,9 @@ const QuoteResult: React.FC<{
347347
icon={icon}
348348
totalAmount={sprintf(
349349
lstrings.string_total_amount_s,
350-
`${formattedSelectedFiatAmount} ${fiatCurrencyCode}${providerQuote.cryptoAmount} ${providerQuote.displayCurrencyCode}`
350+
providerQuote.direction === 'buy'
351+
? `${formattedSelectedFiatAmount} ${fiatCurrencyCode}${providerQuote.cryptoAmount} ${providerQuote.displayCurrencyCode}`
352+
: `${providerQuote.cryptoAmount} ${providerQuote.displayCurrencyCode}${formattedSelectedFiatAmount} ${fiatCurrencyCode}`
351353
)}
352354
settlementTime={formatSettlementTime(providerQuote.settlementRange)}
353355
partner={{

0 commit comments

Comments
 (0)