Updates variable name to improve code readibility
This commit is contained in:
@@ -61,7 +61,7 @@ export default class ChangePassword extends Component {
|
|||||||
currentPassword
|
currentPassword
|
||||||
} = this.state
|
} = this.state
|
||||||
const labels = settings.passwordSettings
|
const labels = settings.passwordSettings
|
||||||
const isDisabled = currentPassword !== null
|
const isPasswordSet = currentPassword !== null
|
||||||
|
|
||||||
if (enteringCurrentPassword) {
|
if (enteringCurrentPassword) {
|
||||||
return (
|
return (
|
||||||
@@ -77,7 +77,11 @@ export default class ChangePassword extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Button disabled={isDisabled} isCTA onPress={this.startChangingPassword}>
|
<Button
|
||||||
|
disabled={isPasswordSet}
|
||||||
|
isCTA
|
||||||
|
onPress={this.startChangingPassword}
|
||||||
|
>
|
||||||
{labels.changePassword}
|
{labels.changePassword}
|
||||||
</Button>
|
</Button>
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user