Fix report not working

This commit is contained in:
Kuba Orlik 2022-07-09 20:14:10 +02:00
parent 50701adcf6
commit f4f287a3bb
1 changed files with 4 additions and 3 deletions

View File

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