Use maxTradePeriod from the PaymentMethod.

This commit is contained in:
jmacxx 2022-04-27 23:01:22 -05:00
parent f31040ba31
commit e0c13df89f
No known key found for this signature in database
GPG Key ID: 155297BABFE94A1B

View File

@ -148,7 +148,7 @@ public abstract class PaymentMethodForm {
public static InfoTextField addOpenTradeDuration(GridPane gridPane,
int gridRow,
Offer offer) {
long hours = offer.getMaxTradePeriod() / 3600_000;
long hours = offer.getPaymentMethod().getMaxTradePeriod() / 3600_000;
final Tuple3<Label, InfoTextField, VBox> labelInfoTextFieldVBoxTuple3 =
addTopLabelInfoTextField(gridPane, gridRow, Res.get("payment.maxPeriod"),
getTimeText(hours), -Layout.FLOATING_LABEL_DISTANCE);