diff --git a/src/components/views/settings/KeyBackupPanel.js b/src/components/views/settings/KeyBackupPanel.js
index 03b98d28a02..050c726ba40 100644
--- a/src/components/views/settings/KeyBackupPanel.js
+++ b/src/components/views/settings/KeyBackupPanel.js
@@ -155,46 +155,44 @@ export default class KeyBackupPanel extends React.Component {
let backupSigStatuses = this.state.backupSigStatus.sigs.map((sig, i) => {
const deviceName = sig.device.getDisplayName() || sig.device.deviceId;
- const sigStatusSubstitutions = {
- validity: sub =>
-
- {sub}
- ,
- verify: sub =>
-
- {sub}
- ,
- device: sub => {deviceName},
- };
+ const validity = sub =>
+
+ {sub}
+ ;
+ const verify = sub =>
+
+ {sub}
+ ;
+ const device = sub => {deviceName};
let sigStatus;
if (sig.device.getFingerprint() === MatrixClientPeg.get().getDeviceEd25519Key()) {
sigStatus = _t(
"Backup has a valid signature from this device",
- {}, sigStatusSubstitutions,
+ {}, { validity },
);
} else if (sig.valid && sig.device.isVerified()) {
sigStatus = _t(
"Backup has a valid signature from " +
"verified device ",
- {}, sigStatusSubstitutions,
+ {}, { validity, verify, device },
);
} else if (sig.valid && !sig.device.isVerified()) {
sigStatus = _t(
"Backup has a valid signature from " +
"unverified device ",
- {}, sigStatusSubstitutions,
+ {}, { validity, verify, device },
);
} else if (!sig.valid && sig.device.isVerified()) {
sigStatus = _t(
"Backup has an invalid signature from " +
"verified device ",
- {}, sigStatusSubstitutions,
+ {}, { validity, verify, device },
);
} else if (!sig.valid && !sig.device.isVerified()) {
sigStatus = _t(
"Backup has an invalid signature from " +
"unverified device ",
- {}, sigStatusSubstitutions,
+ {}, { validity, verify, device },
);
}