Updates variable name to improve code readibility

This commit is contained in:
mashazyu
2020-03-30 09:33:03 +02:00
committed by Sofiya Tepikin
parent 9d7121f5d6
commit 6c89e642b4
+6 -2
View File
@@ -61,7 +61,7 @@ export default class ChangePassword extends Component {
currentPassword
} = this.state
const labels = settings.passwordSettings
const isDisabled = currentPassword !== null
const isPasswordSet = currentPassword !== null
if (enteringCurrentPassword) {
return (
@@ -77,7 +77,11 @@ export default class ChangePassword extends Component {
}
return (
<Button disabled={isDisabled} isCTA onPress={this.startChangingPassword}>
<Button
disabled={isPasswordSet}
isCTA
onPress={this.startChangingPassword}
>
{labels.changePassword}
</Button>
)