v3-ui #98

Merged
Vishnu merged 51 commits from v3-ui into main 2025-06-10 06:46:08 +00:00
1 changed files with 6 additions and 1 deletions
Showing only changes of commit 60064f095a - Show all commits

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("@");