fix: interpolate longName and shortName in PKI backup download (#959)
This caused {{shortName}} and {{longName}} to appear unformatted in the
exported key files:
``` === MESHTASTIC KEYS FOR {{longName}} ({{shortName}}) ===
Private Key: <censored>
Public Key: <censored>
=== END OF KEYS === ```
The fix simply replicates the behaviour used elsewhere in
PKIIBackupDialog.
This commit is contained in:
@@ -94,7 +94,11 @@ export const PkiBackupDialog = ({
|
||||
const decodedPublicKey = decodeKeyData(publicKey);
|
||||
|
||||
const formattedContent = [
|
||||
`${t("pkiBackup.header")}\n\n`,
|
||||
`${t("pkiBackup.header", {
|
||||
interpolation: { escapeValue: false },
|
||||
shortName: getMyNode()?.user?.shortName ?? t("unknown.shortName"),
|
||||
longName: getMyNode()?.user?.longName ?? t("unknown.longName"),
|
||||
})}\n\n`,
|
||||
`${t("pkiBackup.privateKey")}\n`,
|
||||
decodedPrivateKey,
|
||||
`\n\n${t("pkiBackup.publicKey")}\n`,
|
||||
|
||||
Reference in New Issue
Block a user