diff --git a/native/profile/profile-screen.react.js b/native/profile/profile-screen.react.js --- a/native/profile/profile-screen.react.js +++ b/native/profile/profile-screen.react.js @@ -6,6 +6,7 @@ import { logOutActionTypes, logOut } from 'lib/actions/user-actions'; import { preRequestUserStateSelector } from 'lib/selectors/account-selectors'; import { createLoadingStatusSelector } from 'lib/selectors/loading-selectors'; +import { accountHasPassword } from 'lib/shared/account-utils'; import type { LogOutResult } from 'lib/types/account-types'; import { type PreRequestUserState } from 'lib/types/session-types'; import { type CurrentUserInfo } from 'lib/types/user-types'; @@ -100,6 +101,26 @@ ); } + let passwordEditionUI; + if (accountHasPassword(this.props.currentUserInfo)) { + passwordEditionUI = ( + + Password + + •••••••••••••••• + + + + ); + } + return ( Log out - - Password - - •••••••••••••••• - - - + {passwordEditionUI}