Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

mobile: fix error when changing 2fa method

Ammar Ahmed3741e26219dc
diff --git a/apps/mobile/app/components/auth/two-factor.js b/apps/mobile/app/components/auth/two-factor.js
index 902f158fd..a980d6d28 100644
--- a/apps/mobile/app/components/auth/two-factor.js
+++ b/apps/mobile/app/components/auth/two-factor.js
@@ -162,7 +162,7 @@ const TwoFactorVerification = ({ onMfaLogin, mfaInfo, onCancel }) => {
textAlign: "center"
}}
>
- {strings["2faCodeHelpText"][currentMethod.method]() ||
+ {strings["2faCodeHelpText"][currentMethod.method]?.() ||
strings.select2faCodeHelpText()}
</Paragraph>