Skip to content
This repository has been archived by the owner on Apr 27, 2023. It is now read-only.

Commit

Permalink
adds bind:formattedResults to Onboarding.svelte
Browse files Browse the repository at this point in the history
  • Loading branch information
hamilton committed Jun 1, 2021
1 parent 5a2440a commit 784d390
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/routes/Onboarding.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
dispatch("onboarding-complete");
}
let results;
let formattedResults;
</script>

{#if mounted}
Expand All @@ -64,7 +64,7 @@
{:else if view === 'terms'}
<TermsOfService />
{:else if view === 'demographics'}
<Demographics bind:results />
<Demographics bind:formattedResults />
{/if}
</Main>
<OnboardingCTAContainer
Expand All @@ -84,7 +84,7 @@
<DemographicsCallToAction
on:save={() => {
// Submit Demographics here.
store.updateDemographicSurvey(results);
store.updateDemographicSurvey(formattedResults);
// move to the main view.
finishOnboarding();
}}
Expand Down

0 comments on commit 784d390

Please sign in to comment.