diff --git a/app/containers/TwoFactor/index.js b/app/containers/TwoFactor/index.js index 9d1d9daab..3d1c9fe6d 100644 --- a/app/containers/TwoFactor/index.js +++ b/app/containers/TwoFactor/index.js @@ -48,6 +48,7 @@ const TwoFactor = React.memo(({ theme, split }) => { useDeepCompareEffect(() => { if (!_.isEmpty(data)) { + setCode(''); setVisible(true); } else { setVisible(false); @@ -94,7 +95,7 @@ const TwoFactor = React.memo(({ theme, split }) => { {I18n.t(method?.title || 'Two_Factor_Authentication')} - {I18n.t(method?.text)} + {method?.text ? {I18n.t(method.text)} : null}