6 lines
356 B
TypeScript
6 lines
356 B
TypeScript
export function participationIdentity(): {name:string;email:string} {
|
|
try { const value = JSON.parse(sessionStorage.getItem('investemoz-participation-identity') ?? 'null');
|
|
return {name: typeof value?.name === 'string' ? value.name : '', email: typeof value?.email === 'string' ? value.email : ''};
|
|
} catch { return {name:'',email:''}; }
|
|
}
|