Show verify button when we have a device to verify

rather than when we don't
pull/21833/head
David Baker 2019-01-21 11:34:13 +00:00
parent efcfaed335
commit 4c381c32ee
1 changed files with 1 additions and 1 deletions

View File

@ -234,7 +234,7 @@ export default class KeyBackupPanel extends React.PureComponent {
}
let verifyButton;
if (!sig.device || !sig.device.isVerified()) {
if (sig.device && !sig.device.isVerified()) {
verifyButton = <div><br /><AccessibleButton className="mx_UserSettings_button"
onClick={this._verifyDevice} data-sigindex={i}>
{ _t("Verify...") }