set isFirstLogin defaukt value to false
This commit is contained in:
parent
6c7de83a5f
commit
6a216f4e0f
|
@ -17,7 +17,8 @@ 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 ?? false;
|
||||
|
||||
export function setIsFirstLogin(status) {
|
||||
setData(LS_KEYS.IS_FIRST_LOGIN, { status });
|
||||
|
|
Loading…
Reference in a new issue