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: Correct 'Use Max' Behavior to Set Input Field and Recalculate Output #142

Merged
merged 5 commits into from
Oct 15, 2024

Conversation

gabrieltemtsen
Copy link

…typing in output field

Description

A few sentences describing the overall effects and goals of the pull request's commits.
What is the current behavior, and what is the updated/expected behavior with this PR?

The PR fixes the issue where the "Use Max" button incorrectly sets the output field value after a user types in the output field. The updated behavior ensures the input field is set to the maximum balance and recalculates the output based on the conversion rate when the useMax is triggered.

Other changes

Describe any minor or "drive-by" changes here.

Tested

An explanation of how the changes were tested or an explanation as to why they don't need to be.
Tested manually by entering values in both input and output fields, clicking "Use Max," and confirming the input and output fields behave as expected.

Related issues

Checklist before requesting a review

  • [-] I have performed a self-review of my own code
  • I have added tests that prove my fix is effective or that my feature works
  • The PR title follows the conventions
  • I have run the regression tests

Copy link

vercel bot commented Oct 3, 2024

@gabrieltemtsen is attempting to deploy a commit to the Mento Labs Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

vercel bot commented Oct 7, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
mento-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 15, 2024 5:56pm

Copy link
Member

@bayological bayological left a comment

Choose a reason for hiding this comment

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

Thank you for taking your time to contribute 🦾. Can you change the target branch to dev?

@gabrieltemtsen gabrieltemtsen changed the base branch from main to dev October 8, 2024 03:51
@gabrieltemtsen
Copy link
Author

Thank you for taking your time to contribute 🦾. Can you change the target branch to dev?

Sure, I have

@gabrieltemtsen
Copy link
Author

Hi @bayological just checking if you're gonna merge the update since it's already approved? 😊

@bayological bayological merged commit 19cb499 into mento-protocol:dev Oct 15, 2024
6 of 7 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