diff --git a/package.json b/package.json
index 7cf0afc..c5ff524 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "thatconference.com",
- "version": "5.1.2",
+ "version": "5.1.3",
"description": "THATConference.com website",
"main": "index.js",
"type": "module",
diff --git a/src/_components/newsletter/HubspotForm.svelte b/src/_components/newsletter/HubspotForm.svelte
index cfbd58c..2d74e64 100644
--- a/src/_components/newsletter/HubspotForm.svelte
+++ b/src/_components/newsletter/HubspotForm.svelte
@@ -19,7 +19,7 @@
data.append('recaptchaToken', token);
}
- const { form, enhance, constraints, errors, tainted } = superForm(
+ const { form, enhance, constraints, errors, tainted, capture, restore } = superForm(
superValidateSync(newsletterSchema),
{
id: formId,
@@ -35,6 +35,8 @@
}
}
);
+
+ export const snapshot = { capture, restore };
diff --git a/src/routes/(admin my)/my/profiles/emergency-contact/emergencyContactForm.svelte b/src/routes/(admin my)/my/profiles/emergency-contact/emergencyContactForm.svelte
index 2624b03..d6efdae 100644
--- a/src/routes/(admin my)/my/profiles/emergency-contact/emergencyContactForm.svelte
+++ b/src/routes/(admin my)/my/profiles/emergency-contact/emergencyContactForm.svelte
@@ -14,7 +14,7 @@
{ label: 'Yes', value: true }
];
- const { form, enhance, constraints, errors, allErrors } = superForm(sForm, {
+ const { form, enhance, constraints, errors, allErrors, capture, restore } = superForm(sForm, {
dataType: 'json',
defaultValidator: 'clear',
syncFlashMessage: false,
@@ -30,6 +30,8 @@
}
});
+ // enable the svelte snapshot
+ export const snapshot = { capture, restore };
let relationshipSelect = $form.relationship;
let travelingWithYouSelect = yesNoDropDown.find((i) => i.value == $form.travelingWithYou);
diff --git a/src/routes/(admin my)/my/profiles/primary/profileForm.svelte b/src/routes/(admin my)/my/profiles/primary/profileForm.svelte
index eb699ed..9e251fd 100644
--- a/src/routes/(admin my)/my/profiles/primary/profileForm.svelte
+++ b/src/routes/(admin my)/my/profiles/primary/profileForm.svelte
@@ -11,7 +11,7 @@
import { Shell, DisabledShell } from '$elements/buttons';
- const { form, enhance, constraints, errors, allErrors } = superForm(sForm, {
+ const { form, enhance, constraints, errors, allErrors, capture, restore } = superForm(sForm, {
dataType: 'json',
defaultValidator: 'clear',
taintedMessage:
@@ -26,6 +26,9 @@
}
}
});
+
+ // enable the svelte snapshot
+ export const snapshot = { capture, restore };