Remove unnecessary code
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>pull/21833/head
parent
d7acaa9fb0
commit
82e0bcea65
|
@ -155,11 +155,7 @@ export default class SecurityRoomSettingsTab extends React.Component<IProps, ISt
|
||||||
|
|
||||||
const { finished } = dialog;
|
const { finished } = dialog;
|
||||||
const [confirm] = await finished;
|
const [confirm] = await finished;
|
||||||
|
if (!confirm) return;
|
||||||
if (!confirm) {
|
|
||||||
this.setState({ encrypted: false });
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Modal.createTrackedDialog('Enable encryption', '', QuestionDialog, {
|
Modal.createTrackedDialog('Enable encryption', '', QuestionDialog, {
|
||||||
|
|
Loading…
Reference in New Issue