From 68344e981cbd84474a5a6a83d7b67c8a68a2203a Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Mon, 8 Mar 2021 09:21:04 +0200 Subject: [PATCH] set fiat value on scanning payment uri --- .../java/com/sparrowwallet/sparrow/wallet/PaymentController.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/sparrowwallet/sparrow/wallet/PaymentController.java b/src/main/java/com/sparrowwallet/sparrow/wallet/PaymentController.java index e7f756a0..f57905ca 100644 --- a/src/main/java/com/sparrowwallet/sparrow/wallet/PaymentController.java +++ b/src/main/java/com/sparrowwallet/sparrow/wallet/PaymentController.java @@ -326,6 +326,7 @@ public class PaymentController extends WalletFormController implements Initializ } if(bitcoinURI.getAmount() != null) { setRecipientValueSats(bitcoinURI.getAmount()); + setFiatAmount(AppServices.getFiatCurrencyExchangeRate(), bitcoinURI.getAmount()); } if(bitcoinURI.getPayjoinUrl() != null) { AppServices.addPayjoinURI(bitcoinURI);