dynamically retrieve currently selected pool when tx0 preview is fetched

This commit is contained in:
Craig Raw 2024-04-04 12:15:33 +02:00
parent c39425ed3b
commit 86247c6440

View file

@ -340,7 +340,7 @@ public class WhirlpoolController {
}); });
tx0PreviewsService.setOnSucceeded(workerStateEvent -> { tx0PreviewsService.setOnSucceeded(workerStateEvent -> {
tx0Previews = tx0PreviewsService.getValue(); tx0Previews = tx0PreviewsService.getValue();
Tx0Preview tx0Preview = tx0Previews.getTx0Preview(pool.getPoolId()); Tx0Preview tx0Preview = tx0Previews.getTx0Preview(this.pool.getValue().getPoolId());
tx0PreviewProperty.set(tx0Preview); tx0PreviewProperty.set(tx0Preview);
}); });
tx0PreviewsService.setOnFailed(workerStateEvent -> { tx0PreviewsService.setOnFailed(workerStateEvent -> {