From a15f1177be549ab19117d88e0d31b7ba8d772304 Mon Sep 17 00:00:00 2001 From: Julia Friesel <julia.friesel@gmail.com> Date: Mon, 17 Sep 2018 15:26:38 +0200 Subject: [PATCH] Disbale delete pw when current one not given --- components/settings/password/delete.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/settings/password/delete.js b/components/settings/password/delete.js index 0673961d..c4edf402 100644 --- a/components/settings/password/delete.js +++ b/components/settings/password/delete.js @@ -64,6 +64,10 @@ export default class DeletePassword extends Component { requestHash('pre-delete-pw-check', this.state.currentPassword) } }} + disabled={ + this.state.enteringCurrentPassword && + !this.state.currentPassword + } style={styles.settingsButton} > <AppText style={styles.settingsButtonText}> -- GitLab