updated isFirstLogin to function to get Fresh values
This commit is contained in:
parent
6f0fb87c6b
commit
d22606636e
|
@ -68,7 +68,7 @@ export default function Credentials() {
|
|||
keyAttributes.keyDecryptionNonce,
|
||||
kek
|
||||
);
|
||||
if (isFirstLogin) {
|
||||
if (isFirstLogin()) {
|
||||
const intermediateKeyAttribute = await generateIntermediateKey(
|
||||
passphrase,
|
||||
keyAttributes,
|
||||
|
|
|
@ -17,7 +17,7 @@ export function runningInBrowser() {
|
|||
return typeof window !== 'undefined';
|
||||
}
|
||||
|
||||
export const isFirstLogin = getData(LS_KEYS.IS_FIRST_LOGIN)?.status;
|
||||
export const isFirstLogin = () => getData(LS_KEYS.IS_FIRST_LOGIN)?.status;
|
||||
|
||||
export function setIsFirstLogin(status) {
|
||||
setData(LS_KEYS.IS_FIRST_LOGIN, { status });
|
||||
|
|
Loading…
Reference in a new issue