Skip to content
Snippets Groups Projects
Unverified Commit cc0e4e6d authored by pierre-lehnen-rc's avatar pierre-lehnen-rc Committed by GitHub
Browse files

[FIX] "Download my data" popup showing HTML code. (#18947)

parent 87dd1dc9
No related branches found
No related tags found
No related merge requests found
......@@ -41,9 +41,10 @@ const PreferencesMyDataSection = ({ onChange, ...props }) => {
try {
const result = await requestDataDownload({ fullExport });
if (result.requested) {
const text = t('UserDataDownload_Requested_Text', { pending_operations: result.pendingOperationsBeforeMyRequest });
setModal(<MyDataModal
title={t('UserDataDownload_Requested')}
text={t('UserDataDownload_Requested_Text', { pending_operations: result.pendingOperationsBeforeMyRequest })}
text={<Box dangerouslySetInnerHTML={{ __html: text }} />}
onCancel={closeModal}
/>);
return;
......@@ -64,9 +65,10 @@ const PreferencesMyDataSection = ({ onChange, ...props }) => {
return;
}
const text = t('UserDataDownload_RequestExisted_Text', { pending_operations: result.pendingOperationsBeforeMyRequest });
setModal(<MyDataModal
title={t('UserDataDownload_Requested')}
text={t('UserDataDownload_RequestExisted_Text', { pending_operations: result.pendingOperationsBeforeMyRequest })}
text={<Box dangerouslySetInnerHTML={{ __html: text }} />}
onCancel={closeModal}
/>);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment