Skip to content

Commit 322abed

Browse files
committed
chore: fix ts errors
1 parent e2e6912 commit 322abed

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

‎packages/encryption/src/Domain/Keys/Utils/KeyRecoveryStrings.ts‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,22 @@ export const KeyRecoveryStrings = {
88
switch (keyParams.origination) {
99
case KeyParamsOrigination.EmailChange:
1010
return c('B5.SecuritySync.Challenge.Info')
11-
.jt`Enter your account password as it was when you changed your email on ${dateString}.`
11+
.t`Enter your account password as it was when you changed your email on ${dateString}.`
1212
case KeyParamsOrigination.PasswordChange:
1313
return c('B5.SecuritySync.Challenge.Info')
14-
.jt`Enter your account password after it was changed on ${dateString}.`
14+
.t`Enter your account password after it was changed on ${dateString}.`
1515
case KeyParamsOrigination.Registration:
1616
return c('B5.SecuritySync.Challenge.Info')
17-
.jt`Enter your account password as it was when you registered ${dateString}.`
17+
.t`Enter your account password as it was when you registered ${dateString}.`
1818
case KeyParamsOrigination.ProtocolUpgrade:
1919
return c('B5.SecuritySync.Challenge.Info')
20-
.jt`Enter your account password as it was when you upgraded your encryption version on ${dateString}.`
20+
.t`Enter your account password as it was when you upgraded your encryption version on ${dateString}.`
2121
case KeyParamsOrigination.PasscodeChange:
2222
return c('B5.SecuritySync.Challenge.Info')
23-
.jt`Enter your application passcode after it was changed on ${dateString}.`
23+
.t`Enter your application passcode after it was changed on ${dateString}.`
2424
case KeyParamsOrigination.PasscodeCreate:
2525
return c('B5.SecuritySync.Challenge.Info')
26-
.jt`Enter your application passcode as it was when you created it on ${dateString}.`
26+
.t`Enter your application passcode as it was when you created it on ${dateString}.`
2727
default:
2828
throw Error('Unhandled KeyParamsOrigination case for KeyRecoveryLoginFlowPrompt')
2929
}

‎packages/snjs/lib/Services/KeyRecovery/KeyRecoveryService.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ export class KeyRecoveryService
212212
if (!key) {
213213
return new ClientDisplayableError(
214214
c('B5.SecuritySync.Challenge.Error')
215-
.jt`Unable to find key ${keyId} for this item. You may try signing out and back in; if that doesn't help, check your backup files for a key with this ID and import it.`,
215+
.t`Unable to find key ${keyId} for this item. You may try signing out and back in; if that doesn't help, check your backup files for a key with this ID and import it.`,
216216
)
217217
}
218218

0 commit comments

Comments
 (0)