USD always activated, switches between fiat and sats depending on source method

This commit is contained in:
Blake Kaufman
2026-03-30 15:29:28 -04:00
parent 381cce0780
commit ac52bd76bb
2 changed files with 5 additions and 1 deletions
+4 -1
View File
@@ -20,6 +20,7 @@ export default function usePaymentInputDisplay({
usdFiatStats,
masterInfoObject,
isSendingPayment = false,
forceUSDMode = false, // Optional override to force USD mode regardless of paymentMode
}) {
const lockedDisplayRef = useRef({
primary: null,
@@ -27,7 +28,9 @@ export default function usePaymentInputDisplay({
});
const wasSendingPaymentRef = useRef(false);
const deviceCurrency = masterInfoObject?.fiatCurrency || 'USD';
const deviceCurrency = forceUSDMode
? 'USD'
: masterInfoObject?.fiatCurrency || 'USD';
const isDeviceCurrencyUSD = deviceCurrency === 'USD';
const isUSDMode = paymentMode === 'USD';
@@ -139,6 +139,7 @@ export default function StablecoinSendScreen() {
usdFiatStats: { coin: 'USD', value: swapUSDPriceDollars },
masterInfoObject,
isSendingPayment: isSendingPayment.current,
forceUSDMode: sourceMethod === 'BTC',
});
const convertedSendAmount = convertDisplayToSats(rawInput);