USD always activated, switches between fiat and sats depending on source method
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user