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

Bugfix: corrupted MaxTradePeriod when offer payment method changed #6176

Merged
merged 2 commits into from Apr 28, 2022
Merged

Bugfix: corrupted MaxTradePeriod when offer payment method changed #6176

merged 2 commits into from Apr 28, 2022

Conversation

ghost
Copy link

@ghost ghost commented Apr 28, 2022

Fixes #6174

maxTradeLimit and maxTradePeriod were not being set in the OfferPayload when an offer was edited, instead they kept their values from the original offer. So, for example, changing a Zelle offer to CashByMail would result in the trade period being displayed wrong (4 days when it should be 8).

As a side note, I cannot find any reason for these two fields being in the offer payload at all. Perhaps they are legacy and should be marked as deprecated? Most of the code seems to just pick them from the payment method, there only seems to be this one spot in TradeStepView that uses maxTradePeriod from the offer. ( -> fixed by e0c13df)

Copy link
Contributor

@ripcurlx ripcurlx left a comment

Choose a reason for hiding this comment

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

utACK - Thanks for catching that - must be out there for quite a while already 😬

@ripcurlx ripcurlx added this to the v1.9.0 milestone Apr 28, 2022
@ripcurlx ripcurlx merged commit 742546c into bisq-network:master Apr 28, 2022
@ghost ghost mentioned this pull request May 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant