Merge pull request #2464 from matrix-org/dbkr/dont_show_verify_button_unknown_device

Show verify button when we have a device to verify
pull/21833/head
David Baker 2019-01-21 15:04:50 +00:00 committed by GitHub
commit b53c4d05ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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...") }