Skip to content

Commit

Permalink
Remove remaining "N/A" in offer screen after price is set
Browse files Browse the repository at this point in the history
- If the price is not available we display "N/A". Once the price
becomes available the listener handler was not removing the text (N/A).
  • Loading branch information
ManfredKarrer committed Sep 28, 2018
1 parent 2f8172f commit afdd14e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -715,6 +715,7 @@ public TableCell<OfferBookListItem, OfferBookListItem> call(
@Override
public void changed(ObservableValue<? extends Number> observable, Number oldValue, Number newValue) {
if (offerBookListItem != null && offerBookListItem.getOffer().getVolume() != null) {
setText("");
setGraphic(new ColoredDecimalPlacesWithZerosText(model.getVolume(offerBookListItem),
model.getNumberOfDecimalsForVolume(offerBookListItem)));
model.priceFeedService.updateCounterProperty().removeListener(listener);
Expand Down

0 comments on commit afdd14e

Please sign in to comment.