Merge remote-tracking branch 'origin/v3' into v3-ui
This commit is contained in:
commit
60064f095a
|
@ -11,7 +11,12 @@ export const getUserData = (): UserData => {
|
||||||
const userName = localStorage.getItem("userName");
|
const userName = localStorage.getItem("userName");
|
||||||
|
|
||||||
if (!email || !userId) {
|
if (!email || !userId) {
|
||||||
throw new Error("User data not found in localStorage");
|
return {
|
||||||
|
email: '',
|
||||||
|
userId: '',
|
||||||
|
userName: '',
|
||||||
|
organization: '',
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
const [_, emailDomain] = email.split("@");
|
const [_, emailDomain] = email.split("@");
|
||||||
|
|
Loading…
Reference in New Issue