Skip to content

Commit

Permalink
Merge pull request #398 from Entkenntnis/397-fix-survey-crashing-if-u…
Browse files Browse the repository at this point in the history
…ser-is-not-found

fix bug in survey if user is deleted
  • Loading branch information
Entkenntnis authored Dec 20, 2024
2 parents 77c32d9 + 1c33851 commit 5728f3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/routes/survey.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,8 @@ export function setupSurvey(App) {
${entries
.map((entry) => {
return `<p>${new Date(entry.ts).toLocaleString()} / ${escapeHtml(
userIndex[entry.userId].name
)} (${userIndex[entry.userId].score})<br />Interesse: ${
userIndex[entry.userId]?.name ?? '--- gelöscht ---'
)} (${userIndex[entry.userId]?.score ?? -1})<br />Interesse: ${
entry.obj.interest
}, Herausforderung: ${entry.obj.challenge}, Spaß: ${
entry.obj.fun
Expand Down

0 comments on commit 5728f3b

Please sign in to comment.