Fix report not working

This commit is contained in:
Kuba Orlik 2022-07-09 20:14:10 +02:00
parent 50701adcf6
commit f4f287a3bb

View File

@ -63,9 +63,10 @@ export default function EmailContent({
{mode === 'email' {mode === 'email'
? emailIntro(email_tone, _, visited_url) ? emailIntro(email_tone, _, visited_url)
: reportIntro(visited_url)} : reportIntro(visited_url)}
{problems.map((problem, index) => ( {problems.map((problem, index) => {
<problem.getEmailContent mode={mode} tone={email_tone} key={index} /> const Component = problem.getEmailContent.bind(problem);
))} return <Component mode={mode} tone={email_tone} key={index} />;
})}
{explainers.map((explainer) => explainer(answers.zaimek))} {explainers.map((explainer) => explainer(answers.zaimek))}
<h2>Państwa rola jako współadministratora danych osobowych</h2> <h2>Państwa rola jako współadministratora danych osobowych</h2>
{mode == 'email' ? ( {mode == 'email' ? (