diff --git a/apps/svelte-gravity-forms/src/lib/internal/gf.ts b/apps/svelte-gravity-forms/src/lib/internal/gf.ts index 97f83b4..b35a503 100644 --- a/apps/svelte-gravity-forms/src/lib/internal/gf.ts +++ b/apps/svelte-gravity-forms/src/lib/internal/gf.ts @@ -56,12 +56,12 @@ export function createSvelteGravityFroms(props: CreateGravityFromsProps) { const formSubmtiButton = writable(undefined); const defaultConfirmation = writable(undefined); const isSubmitted = writable(false); + const consumerKeyStore = writable(withDefaults.consumerKey); const consumerSecretStore = writable(withDefaults.consumerSecret); - // Fetch form object from Gravity Forms API - // Handle form submission + // Fetch form object from Gravity Forms API async function onSubmitForm(req: { [x: string]: unknown }) { try { const submit = await sendSubmission(req, backendUrl, formId);