-
Notifications
You must be signed in to change notification settings - Fork 374
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
[wallet] UX fixes for native phone number #1717
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you set a more clear description for this before you merge it?
Codecov Report
@@ Coverage Diff @@
## master #1717 +/- ##
=======================================
Coverage 74.26% 74.26%
=======================================
Files 277 277
Lines 7617 7617
Branches 669 669
=======================================
Hits 5657 5657
Misses 1845 1845
Partials 115 115
Continue to review full report at Codecov.
|
Removing automerge, see @annakaz 's comment |
…rg/celo-monorepo into martinvol/fix_error_native_picker
bcffaaf
to
57c2b72
Compare
Thanks to @jeanregisser I figured out a way to differentiate USA vs Canada and should be working fine now. |
} catch (error) { | ||
console.info( | ||
`${TAG}/triggerPhoneNumberRequestAndroid`, | ||
'Could not request phone. This might be thrown if the user dismissed the modal', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you differentiate the case when the user dismissed the modal based on the error message thrown by the NativePicker?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately when the modal is dismissed SmsRetriever.requestPhoneNumber()
throws a generic There was an error trying to get the phone number
error :/
…nvol/fix_error_native_picker
Should be good to go! @annakaz |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple minor comments, but LGTM!
} | ||
|
||
onChangeCountryQuery = (countryQuery: string) => { | ||
ChangeCountryQuery = (countryQuery: string) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: changeCountryQuery no caps?
// linter doesn't allow following code without splitting this code in two lines | ||
const number = await SmsRetriever.requestPhoneNumber() | ||
return number | ||
async _getPhoneNumberFromNativePickerAndroid() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haven't seen the _ used in other parts of our codebase, ok to just keep as getPhoneNumberFromNativePickerAndroid
?
…rg/celo-monorepo into martinvol/fix_error_native_picker
Description
error
toinfo
to prevent red screen when user dismiss the modalTested
Other changes
Related issues
Backwards compatibility