Skip to content

Commit

Permalink
subscribe to dispute state property to update dispute view
Browse files Browse the repository at this point in the history
  • Loading branch information
woodser committed Dec 14, 2023
1 parent 3266cd1 commit 27984e2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1352,7 +1352,7 @@ public void updateItem(final Dispute item, boolean empty) {
// subscribe to trade's dispute state
Trade trade = tradeManager.getTrade(item.getTradeId());
if (trade == null) log.warn("Dispute's trade is null for trade {}", item.getTradeId());
else subscription = EasyBind.subscribe(item.isClosedProperty(), closedProp -> setText(getDisputeStateText(item)));
else subscription = EasyBind.subscribe(trade.disputeStateProperty(), disputeState -> setText(getDisputeStateText(item)));
} else {
if (closedProperty != null) {
closedProperty.removeListener(listener);
Expand Down

0 comments on commit 27984e2

Please sign in to comment.