fix: add send mail false using share link from inprogress report

This commit is contained in:
RaktimaNXG
2024-05-21 17:36:41 +05:30
parent 7de8699437
commit 481b9ac1e0
@@ -296,9 +296,12 @@ const ReportTable = (props) => {
const handleShare = (item) => {
setActLoader({ [item.objectId]: true });
const host = window.location.origin;
const sendMail = false;
const getUrl = (x) => {
//encode this url value `${item.objectId}/${x.Email}/${x.objectId}` to base64 using `btoa` function
const encodeBase64 = btoa(`${item.objectId}/${x.Email}/${x.objectId}`);
const encodeBase64 = btoa(
`${item.objectId}/${x.Email}/${x.objectId}/${sendMail}`
);
return `${host}/login/${encodeBase64}`;
};