Skip to content

Commit

Permalink
Merge branch 'expand-enketo-helper' of https://github.com/Abby-Wheeli…
Browse files Browse the repository at this point in the history
…s/e-mission-phone into migration-wrapup
  • Loading branch information
JGreenlee committed Nov 21, 2023
2 parents ea60154 + e414c5c commit 2c4afca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions www/js/survey/enketo/enketoHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,8 @@ 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
data.start_ts = timestamps.start_ts || opts.timelineEntry.enter_ts;
data.end_ts = timestamps.end_ts || opts.timelineEntry.exit_ts;
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
data.match_id = URL.createObjectURL(new Blob([])).slice(-36);
} else {
Expand Down

0 comments on commit 2c4afca

Please sign in to comment.