Remove remaining "N/A" in offer screen after price is set

- 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).
This commit is contained in:
Manfred Karrer 2018-09-28 11:09:22 -05:00
parent 2f8172f704
commit afdd14e391
No known key found for this signature in database
GPG Key ID: 401250966A6B2C46

View File

@ -715,6 +715,7 @@ public class OfferBookView extends ActivatableViewAndModel<GridPane, OfferBookVi
@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);