From 86247c64404119c0bd4c68299961252b3933227d Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Thu, 4 Apr 2024 12:15:33 +0200 Subject: [PATCH] dynamically retrieve currently selected pool when tx0 preview is fetched --- .../sparrowwallet/sparrow/whirlpool/WhirlpoolController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/sparrowwallet/sparrow/whirlpool/WhirlpoolController.java b/src/main/java/com/sparrowwallet/sparrow/whirlpool/WhirlpoolController.java index 3663ade2..b4bb5c07 100644 --- a/src/main/java/com/sparrowwallet/sparrow/whirlpool/WhirlpoolController.java +++ b/src/main/java/com/sparrowwallet/sparrow/whirlpool/WhirlpoolController.java @@ -340,7 +340,7 @@ public class WhirlpoolController { }); tx0PreviewsService.setOnSucceeded(workerStateEvent -> { tx0Previews = tx0PreviewsService.getValue(); - Tx0Preview tx0Preview = tx0Previews.getTx0Preview(pool.getPoolId()); + Tx0Preview tx0Preview = tx0Previews.getTx0Preview(this.pool.getValue().getPoolId()); tx0PreviewProperty.set(tx0Preview); }); tx0PreviewsService.setOnFailed(workerStateEvent -> {