mobile
mobile copied to clipboard
[SG-671] OTP Menu Screen causes Crash on Android
Type of change
- [X] Bug fix
- [ ] New feature development
- [ ] Tech debt (refactoring, code cleanup, dependency upgrades, etc)
- [ ] Build/deploy pipeline (DevOps)
- [ ] Other
Objective
User was not able to enter the ´Verification codes´ screen because the app was crashing. The crash was due to otpauth url having a bad format making the function to calculate the period throw an exception.
Code changes
Added protection against exception on the calc of the period, defaulting it to 30 seconds rotation. src/App/Pages/Vault/GroupingsPage/GroupingsPageTOTPListItem.cs: removed calculation and variable that wasn't being used.
Before you submit
- Please check for formatting errors (
dotnet format --verify-no-changes
) (required) - Please add unit tests where it makes sense to do so (encouraged but not required)
- If this change requires a documentation update - notify the documentation team
- If this change has particular deployment requirements - notify the DevOps team