We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2dfb1dd commit fef275fCopy full SHA for fef275f
lib/actions/form.js
@@ -46,7 +46,12 @@ export function formChanged () {
46
dispatch(changingForm())
47
const otpState = getState().otp
48
const {autoPlan, debouncePlanTimeMs} = otpState.config
49
+
50
+ // check if a trip plan should be made
51
if (autoPlan && queryIsValid(otpState)) {
52
+ // trip plan should be made
53
54
+ // check if debouncing function needs to be (re)created
55
if (!debouncedPlanTrip || lastDebouncePlanTimeMs !== debouncePlanTimeMs) {
56
debouncedPlanTrip = debounce(() => dispatch(planTrip()), debouncePlanTimeMs)
57
lastDebouncePlanTimeMs = debouncePlanTimeMs
0 commit comments