diff --git a/src/components/structures/UserSettings.js b/src/components/structures/UserSettings.js index 8885747585..fdade60dfd 100644 --- a/src/components/structures/UserSettings.js +++ b/src/components/structures/UserSettings.js @@ -552,21 +552,20 @@ module.exports = React.createClass({ const deviceId = client.deviceId; const identityKey = client.getDeviceEd25519Key() || ""; - let exportButton = null, - importButton = null; + let importExportButtons = null; if (client.isCryptoEnabled) { - exportButton = ( - - Export E2E room keys - - ); - importButton = ( - - Import E2E room keys - + importExportButtons = ( +
+ + Export E2E room keys + + + Import E2E room keys + +
); } return ( @@ -577,8 +576,7 @@ module.exports = React.createClass({
  • {deviceId}
  • {identityKey}
  • - {exportButton} - {importButton} + { importExportButtons }
    { CRYPTO_SETTINGS_LABELS.map( this._renderLocalSetting ) }