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: Update Modal ConfirmLabel Logic for Transaction Types - 2789 #2803

Conversation

hamed-valiollahi
Copy link
Collaborator

This PR addresses the issue where the modal's confirmLabel was not dynamically updating based on different transaction types.

Closes #2789

@@ -517,19 +517,27 @@ class CreditTransferViewContainer extends Component {
}

_modalRecommend (item) {
const isBuyOrSell = [CREDIT_TRANSFER_TYPES.buy.id, CREDIT_TRANSFER_TYPES.sell.id].indexOf(item.type.id) >= 0;
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't think we need to differentiate between Buy or Sell because the button labels should be the same for both. Is this component even used for Initiative Agreements?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, this modal is used for "Transfers with the Submitted Status" as well as for "Initiative Agreements".
Please check out Justin's comment on the ticket page for more information.

Copy link
Collaborator

Choose a reason for hiding this comment

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

ah gotcha, thanks.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

You're welcome!
Thanks, Alex, for reviewing my PR.

@AlexZorkin AlexZorkin merged commit 99fe06c into main-release-jan-2024 Jan 16, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants