[Query Copilot] Pass user email to query feedback (#1516)

* Pass user email to query feedback AB#2501550

* Await page.frame

* Make contact no by default

* Add hook to check if it sohuld render the modal in the main component
This commit is contained in:
v-darkora
2023-07-10 10:59:05 +02:00
committed by GitHub
parent b6d576b7b6
commit e9ea887fe7
4 changed files with 17 additions and 4 deletions

View File

@@ -6,3 +6,9 @@ export const getFullName = (): string => {
const { name } = decryptJWTToken(authorizationToken);
return name;
};
export const getUserEmail = (): string => {
const { authorizationToken } = userContext;
const { upn } = decryptJWTToken(authorizationToken);
return upn;
};