From 011c3bcb21c0c017d0e6fbe804e2ec4468a8d0ee Mon Sep 17 00:00:00 2001 From: Phil Haack Date: Fri, 5 Jan 2024 13:41:12 -0800 Subject: [PATCH] Use const instead of let Co-authored-by: Keith Dahlby --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index e4a7408..f7380ac 100644 --- a/src/index.ts +++ b/src/index.ts @@ -796,7 +796,7 @@ export class ValidationService { // Because the submitter is not propagated when calling // form.submit(), we recreate it here. const submitter = submitEvent.submitter; - let initialFormAction = form.action; + const initialFormAction = form.action; if (submitter) { const name = submitter.getAttribute('name'); // If name is null, a submit button is not submitted.