Skip to content

Commit

Permalink
update confirmation string
Browse files Browse the repository at this point in the history
  • Loading branch information
miles-grant-ibigroup committed Sep 6, 2024
1 parent c4dfc9e commit 0cef33b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/actions/field-trip.js
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,10 @@ function prepareQueryParams(request, outbound) {
}
const hasExistingLocations = currentQuery.from || currentQuery.to
const locations =
!hasExistingLocations || window.confirm('Overwrite existing locations?')
!hasExistingLocations ||
window.confirm(
'Use custom set locations? Pressing "Cancel" will use the locations you have typed in. Pressing "OK" will use the locations currently saved to the field trip'
)
? await planParamsToQueryAsync(locationsToGeocode, config)
: { from: currentQuery.from, to: currentQuery.to }
return dispatch(setQueryParam({ ...locations, ...queryParams }))
Expand Down

0 comments on commit 0cef33b

Please sign in to comment.