set fiat value on scanning payment uri

This commit is contained in:
Craig Raw 2021-03-08 09:21:04 +02:00
parent 10c1574a4a
commit 68344e981c

View file

@ -326,6 +326,7 @@ public class PaymentController extends WalletFormController implements Initializ
} }
if(bitcoinURI.getAmount() != null) { if(bitcoinURI.getAmount() != null) {
setRecipientValueSats(bitcoinURI.getAmount()); setRecipientValueSats(bitcoinURI.getAmount());
setFiatAmount(AppServices.getFiatCurrencyExchangeRate(), bitcoinURI.getAmount());
} }
if(bitcoinURI.getPayjoinUrl() != null) { if(bitcoinURI.getPayjoinUrl() != null) {
AppServices.addPayjoinURI(bitcoinURI); AppServices.addPayjoinURI(bitcoinURI);