diff --git a/package.json b/package.json index 84c09897..3622b999 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "StandardNotes", - "version": "3.5.9", - "user-version": "3.5.9", + "version": "3.5.10", + "user-version": "3.5.10", "private": true, "license": "AGPL-3.0-or-later", "scripts": { diff --git a/src/screens/Authenticate/helpers.ts b/src/screens/Authenticate/helpers.ts index 1e91718a..a30a3420 100644 --- a/src/screens/Authenticate/helpers.ts +++ b/src/screens/Authenticate/helpers.ts @@ -139,12 +139,12 @@ export const getChallengePromptTitle = ( prompt: ChallengePrompt, state: AuthenticationValueStateType ) => { - const title = prompt.title!; + const title = prompt.title; switch (state) { case AuthenticationValueStateType.WaitingTurn: - return title.concat(' ', '- Waiting.'); + return title?.concat(' ', '- Waiting.') ?? 'Waiting'; case AuthenticationValueStateType.Locked: - return title.concat(' ', '- Locked.'); + return title?.concat(' ', '- Locked.') ?? 'Locked'; default: return title; }