Skip to content

Commit

Permalink
fix(console): auth signup fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xmlking committed Jul 16, 2024
1 parent 33a2b8b commit 9382bb2
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions apps/console/src/routes/(auth)/signup/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ $formData.redirectTo = $page.url.searchParams.get('redirectTo') ?? $formData.red
class="input data-[fs-error]:input-error"
placeholder={m.auth_forms_first_name_placeholder()}
{...attrs}
bind:value={$formData.email}
bind:value={$formData.firstName}
/>
</Form.Control>
<Form.FieldErrors class="data-[fs-error]:text-error-500" />
Expand Down Expand Up @@ -168,7 +168,7 @@ $formData.redirectTo = $page.url.searchParams.get('redirectTo') ?? $formData.red
class="input data-[fs-error]:input-error"
placeholder={m.auth_forms_password_placeholder()}
{...attrs}
bind:value={$formData.email}
bind:value={$formData.password}
/>
</Form.Control>
<Form.FieldErrors class="data-[fs-error]:text-error-500" />
Expand All @@ -185,7 +185,7 @@ $formData.redirectTo = $page.url.searchParams.get('redirectTo') ?? $formData.red
class="input data-[fs-error]:input-error"
placeholder={m.auth_forms_confirm_password_placeholder()}
{...attrs}
bind:value={$formData.email}
bind:value={$formData.confirmPassword}
/>
</Form.Control>
<Form.FieldErrors class="data-[fs-error]:text-error-500" />
Expand All @@ -199,7 +199,7 @@ $formData.redirectTo = $page.url.searchParams.get('redirectTo') ?? $formData.red
type="checkbox"
class="checkbox data-[fs-error]:input-error"
{...attrs}
bind:value={$formData.terms}
bind:checked={$formData.terms}
/>
<span class="ml-2">
I accept the
Expand All @@ -208,9 +208,6 @@ $formData.redirectTo = $page.url.searchParams.get('redirectTo') ?? $formData.red
<a href="/privacy" class="text-primaryHover underline"
>privacy policy</a
>
{#if $errors.terms}
<small class="text-error-500">{$errors.terms}</small>
{/if}
</span>
</Form.Control>
<Form.FieldErrors class="data-[fs-error]:text-error-500" />
Expand Down

0 comments on commit 9382bb2

Please sign in to comment.