set isFirstLogin defaukt value to false

This commit is contained in:
Abhinav-grd 2021-04-03 09:53:16 +05:30
parent 6c7de83a5f
commit 6a216f4e0f

View file

@ -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 });