Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3404612
D7989.id27075.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D7989.id27075.diff
View Options
diff --git a/native/account/registration/keyserver-selection.react.js b/native/account/registration/keyserver-selection.react.js
--- a/native/account/registration/keyserver-selection.react.js
+++ b/native/account/registration/keyserver-selection.react.js
@@ -1,6 +1,5 @@
// @flow
-import invariant from 'invariant';
import * as React from 'react';
import { Text } from 'react-native';
@@ -67,10 +66,9 @@
const { navigate } = props.navigation;
const { coolOrNerdMode } = props.route.params.userSelections;
const onSubmit = React.useCallback(() => {
- invariant(
- keyserverUsername,
- 'Button should be disabled if keyserverUsername is not set',
- );
+ if (!keyserverUsername) {
+ return;
+ }
navigate<'ConnectEthereum'>({
name: ConnectEthereumRouteName,
params: { userSelections: { coolOrNerdMode, keyserverUsername } },
@@ -121,6 +119,8 @@
onChangeText={setCustomKeyserver}
placeholder="Keyserver"
onFocus={onCustomKeyserverFocus}
+ returnKeyType="go"
+ onSubmitEditing={onSubmit}
ref={customKeyserverTextInputRef}
/>
</RegistrationTile>
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Dec 4, 12:00 PM (10 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2612307
Default Alt Text
D7989.id27075.diff (1 KB)
Attached To
Mode
D7989: [native] Minor updates to KeyserverSelection TextInput
Attached
Detach File
Event Timeline
Log In to Comment