File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ function NoticeCards(props) {
3232 } , [ myShares ] )
3333
3434 const isEncryptionUpdate = useMemo ( ( ) => {
35- return userInfo . kdf === global . constants . CORE_JS_INFO . KDF && userInfo . kdf_iterations < global . constants . CORE_JS_INFO . KDF_ITERATIONS
35+ return userInfo . kdf === global . constants . CORE_JS_INFO . KDF && userInfo . kdf_iterations < global . constants . CORE_JS_INFO . KDF_ITERATIONS && userInfo . kdf_version >= 1
3636 } , [ userInfo ] )
3737
3838 useEffect ( ( ) => {
Original file line number Diff line number Diff line change 11import React , { useState } from "react" ;
2+ import { useSelector } from 'react-redux' ;
23import { useTranslation } from "react-i18next" ;
34
45import { Divider } from '@lockerpm/design' ;
@@ -25,6 +26,8 @@ const Security = (props) => {
2526 const { } = props ;
2627 const { t } = useTranslation ( ) ;
2728 const [ expand , setExpand ] = useState ( false ) ;
29+
30+ const userInfo = useSelector ( state => state . auth . userInfo ) ;
2831
2932 return (
3033 < div className = "layout-content" >
@@ -60,8 +63,12 @@ const Security = (props) => {
6063 </ div >
6164 }
6265 </ div >
63- < Divider />
64- < EncryptionKeySettings />
66+ {
67+ userInfo ?. kdf_version >= 1 && < >
68+ < Divider />
69+ < EncryptionKeySettings />
70+ </ >
71+ }
6572 < Divider />
6673 < TwoFA />
6774 < Divider />
You can’t perform that action at this time.
0 commit comments