Skip to content

Commit

Permalink
save group to results
Browse files Browse the repository at this point in the history
  • Loading branch information
jakub-jedrusiak committed Feb 28, 2024
1 parent 158bafc commit 14da74b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion velesresearch/website_template/src/SurveyComponent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ function SurveyComponent() {

survey.onComplete.add((sender) => {
const result = Object.assign(
{ id: MakeID(8), date_completed: new Date() },
{
id: MakeID(8),
group: survey.getVariable("group"),
date_completed: new Date(),
},
sender.data
);
// send data to Django backend
Expand Down

0 comments on commit 14da74b

Please sign in to comment.