Merge remote-tracking branch 'origin/v3' into v3-ui

This commit is contained in:
Vishnu 2025-06-10 11:55:56 +05:30
commit 60064f095a
1 changed files with 6 additions and 1 deletions

View File

@ -11,7 +11,12 @@ export const getUserData = (): UserData => {
const userName = localStorage.getItem("userName");
if (!email || !userId) {
throw new Error("User data not found in localStorage");
return {
email: '',
userId: '',
userName: '',
organization: '',
};
}
const [_, emailDomain] = email.split("@");