fix isInternalUser

This commit is contained in:
Abhinav 2023-02-09 16:02:20 +05:30
parent bfdac846e1
commit 3d91f5ac57

View file

@ -35,6 +35,7 @@ export function getLocalUserDetails(): UserDetails {
export const isInternalUser = () => { export const isInternalUser = () => {
const userEmail = getData(LS_KEYS.USER)?.email; const userEmail = getData(LS_KEYS.USER)?.email;
if (!userEmail) return false;
return ( return (
userEmail.endsWith('@ente.io') || userEmail === 'kr.anand619@gmail.com' userEmail.endsWith('@ente.io') || userEmail === 'kr.anand619@gmail.com'