Skip to content

Commit

Permalink
Use maxTradePeriod from the PaymentMethod.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmacxx committed Apr 28, 2022
1 parent f31040b commit e0c13df
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -148,7 +148,7 @@ protected void addAccountNameTextFieldWithAutoFillToggleButton() {
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);
Expand Down

0 comments on commit e0c13df

Please sign in to comment.