From 08017a5b92c28031060feca4f66b464a2e22c0d1 Mon Sep 17 00:00:00 2001 From: "EP\\qang2" Date: Tue, 19 Dec 2023 10:34:26 +0700 Subject: [PATCH] Change variables names --- src/@episerver/forms-react/src/components/FormBody.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/@episerver/forms-react/src/components/FormBody.tsx b/src/@episerver/forms-react/src/components/FormBody.tsx index 6b0f8c0..fdd71de 100644 --- a/src/@episerver/forms-react/src/components/FormBody.tsx +++ b/src/@episerver/forms-react/src/components/FormBody.tsx @@ -35,7 +35,7 @@ export const FormBody = (props: FormBodyProps) => { isReadOnlyMode = false, readOnlyModeMessage = "", currentStepIndex = formContext?.currentStepIndex ?? 0, - submissionStorageKey = FormConstants.FormCurrentStep + form.key, + submissionStorageKey = FormConstants.FormSubmissionId + form.key, isStepValidToDisplay = true; if((isFormFinalized.current || isProgressiveSubmit.current) && isSuccess.current) @@ -100,7 +100,7 @@ export const FormBody = (props: FormBodyProps) => { formKey: form.key, locale: form.locale, isFinalized: submitButton?.properties?.finalizeForm || isLastStep, - partialSubmissionKey: localFormCache.get(FormConstants.FormSubmissionId + form.key) ?? formContext?.submissionKey ?? "", + partialSubmissionKey: localFormCache.get(submissionStorageKey) ?? formContext?.submissionKey ?? "", hostedPageUrl: window.location.pathname, submissionData: formSubmissions, accessToken: formContext?.identityInfo?.accessToken,