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( 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,