iOS / Android - Request money page breaks after using 14 digits
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Issue is failing PR https://github.com/Expensify/App/pull/5192 (CC @akshayasalvi @marcaaron @deetergp)
Action Performed
- Launch the app and log in with any account
- Go to any transaction option - Split Money or Request Money
- Search for ALL currency
- Go to the number pad and try to type a very long number - say 14+ digits.
Expected Result
Request money page looks properly aligned after using 14 digits
Actual Result
Request money page breaks after using 14 digits
Platform
iOS ✔️ Android ✔️
Version Number: 1.0.98-0
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Images/Video
https://user-images.githubusercontent.com/44479856/133172635-e4056483-ec7c-4e9c-b471-7942ecf8ecda.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause Slack conversation:
Triggered auto assignment to @ctkochan22 (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.
:wave: Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open StagingDeployCash deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
- Identify the pull request that introduced this issue and revert it.
- Find someone who can quickly fix the issue.
- Fix the issue yourself.
I feel like the simplest fix would be to cap the size of the amount you can enter to 10 digits? I think that's the max we allow in the backend anyway. @akshayasalvi would you be able to submit a follow-up PR to limit the number of digits to 10 in this input please?
Oh haha I just realized the original PR was to cap the amount to 14 digits. I checked that our backend only allows for 10 digits, so 14 wouldn't have worked anyway.
@francoisl Ohh this never came up in any previous discussions XD. Sure I'll add a cap of 10 digits.
🚀 Deployed to production by @francoisl in version: 1.0.98-1 🚀
| platform | result |
|---|---|
| 🤖 android 🤖 | success ✅ |
| 🖥 desktop 🖥 | success ✅ |
| 🍎 iOS 🍎 | success ✅ |
| 🕸 web 🕸 | success ✅ |
I think we're good to close this one out CC @francoisl
🚀 Deployed to staging by @francoisl in version: 1.0.98-2 🚀
| platform | result |
|---|---|
| 🤖 android 🤖 | success ✅ |
| 🖥 desktop 🖥 | success ✅ |
| 🍎 iOS 🍎 | success ✅ |
| 🕸 web 🕸 | success ✅ |