Page MenuHomePhabricator

D8089.diff
No OneTemporary

D8089.diff

diff --git a/native/account/registration/avatar-selection.react.js b/native/account/registration/avatar-selection.react.js
--- a/native/account/registration/avatar-selection.react.js
+++ b/native/account/registration/avatar-selection.react.js
@@ -26,7 +26,7 @@
+userSelections: {
+coolOrNerdMode: CoolOrNerdMode,
+keyserverUsername: string,
- +accountSelections: AccountSelection,
+ +accountSelection: AccountSelection,
},
};
@@ -42,19 +42,19 @@
};
function AvatarSelection(props: Props): React.Node {
const { userSelections } = props.route.params;
- const { accountSelections } = userSelections;
+ const { accountSelection } = userSelections;
const username =
- accountSelections.accountType === 'username'
- ? accountSelections.username
- : accountSelections.address;
+ accountSelection.accountType === 'username'
+ ? accountSelection.username
+ : accountSelection.address;
const editUserAvatarContext = React.useContext(EditUserAvatarContext);
invariant(editUserAvatarContext, 'editUserAvatarContext should be set');
const { setRegistrationMode } = editUserAvatarContext;
const prefetchedAvatarURI =
- accountSelections.accountType === 'ethereum'
- ? accountSelections.avatarURI
+ accountSelection.accountType === 'ethereum'
+ ? accountSelection.avatarURI
: undefined;
const [avatarData, setAvatarData] = React.useState<?AvatarData>(
diff --git a/native/account/registration/connect-ethereum.react.js b/native/account/registration/connect-ethereum.react.js
--- a/native/account/registration/connect-ethereum.react.js
+++ b/native/account/registration/connect-ethereum.react.js
@@ -159,7 +159,7 @@
const newUserSelections = {
...userSelections,
- accountSelections: {
+ accountSelection: {
accountType: 'ethereum',
...result,
avatarURI,
diff --git a/native/account/registration/password-selection.react.js b/native/account/registration/password-selection.react.js
--- a/native/account/registration/password-selection.react.js
+++ b/native/account/registration/password-selection.react.js
@@ -70,7 +70,7 @@
const newUserSelections = {
coolOrNerdMode,
keyserverUsername,
- accountSelections: {
+ accountSelection: {
accountType: 'username',
username,
password,

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 24, 6:10 AM (20 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2574242
Default Alt Text
D8089.diff (2 KB)

Event Timeline