Skip to content

Commit

Permalink
restore line
Browse files Browse the repository at this point in the history
  • Loading branch information
Abby Wheelis committed Dec 4, 2023
1 parent 1ddd342 commit d083d3e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions www/js/survey/enketo/enketoHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ export function saveResponse(
return new Error(i18next.t('survey.enketo-timestamps-invalid')); //"Timestamps are invalid. Please ensure that the start time is before the end time.");
}
// if timestamps were not resolved from the survey, we will use the trip or place timestamps
timestamps ||= opts.timelineEntry;
data.start_ts = timestamps?.start_ts || opts.timelineEntry.enter_ts;
data.end_ts = timestamps?.end_ts || opts.timelineEntry.exit_ts;
// UUID generated using this method https://stackoverflow.com/a/66332305
Expand Down

0 comments on commit d083d3e

Please sign in to comment.