Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix select currency issues after edit offer #1578

Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,9 @@ protected void deactivate() {
///////////////////////////////////////////////////////////////////////////////////////////

public void initWithData(OpenOffer openOffer) {
model.initWithData(openOffer);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer if we don't have that call before the super call. Carries risky dependencies of order of calls (see my comment in other commit - maybe that solves the issue without changing here the order?)

super.initWithData(openOffer.getOffer().getDirection(),
CurrencyUtil.getTradeCurrency(openOffer.getOffer().getCurrencyCode()).get());
model.initWithData(openOffer);

model.onStartEditOffer(errorMessage -> {
log.error(errorMessage);
Expand Down