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(max): respect local decimal separator when setting max #5551

Merged
merged 4 commits into from
Jun 14, 2024

Conversation

MuckT
Copy link
Collaborator

@MuckT MuckT commented Jun 14, 2024

Description

Discovered with EarnEnterAmount.tsx, but also present in EnterAmount.tsx when pressing max the local decimilar separator was not set correctly preventing users from being able to delete characters from the input amount.

Test plan

  • Tested locally on iOS
  • Tested locally on Android
  • Unit tests updated

Related issues

N/A

Backwards compatibility

Yes

Network scalability

N/A

Copy link

codecov bot commented Jun 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.46%. Comparing base (fd2a940) to head (1a13337).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##             main    #5551    +/-   ##
========================================
  Coverage   86.45%   86.46%            
========================================
  Files         762      762            
  Lines       31458    31458            
  Branches     5129     5422   +293     
========================================
+ Hits        27197    27200     +3     
+ Misses       4219     4027   -192     
- Partials       42      231   +189     
Files Coverage Δ
src/earn/EarnEnterAmount.tsx 84.18% <100.00%> (+2.55%) ⬆️
src/send/EnterAmount.tsx 96.22% <100.00%> (ø)

... and 78 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fd2a940...1a13337. Read the comment docs.

@MuckT MuckT enabled auto-merge June 14, 2024 21:45
@MuckT MuckT added this pull request to the merge queue Jun 14, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jun 14, 2024
@MuckT MuckT added this pull request to the merge queue Jun 14, 2024
Merged via the queue into main with commit 81fbed4 Jun 14, 2024
16 checks passed
@MuckT MuckT deleted the tomm/max-amount-setting-fix branch June 14, 2024 23:44
MuckT added a commit that referenced this pull request Jun 14, 2024
### Description

Discovered with `EarnEnterAmount.tsx`, but also present in
`EnterAmount.tsx` when pressing max the local decimilar separator was
not set correctly preventing users from being able to delete characters
from the input amount.

### Test plan

- [x] Tested locally on iOS
- [x] Tested locally on Android
- [x] Unit tests updated

### Related issues

N/A

### Backwards compatibility

Yes

### Network scalability

N/A
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.

None yet

2 participants