Account

Email

{data.user.email}

Profile

{#if form?.action === 'updateProfile' && form?.success}
Profile updated successfully.
{/if} {#if form?.action === 'updateProfile' && form?.error}
{form.error}
{/if}

Addresses

{#if form?.action === 'addAddress' && form?.success}
Address added successfully.
{/if} {#if form?.action === 'addAddress' && form?.error}
{form.error}
{/if} {#if showAddressForm}
{/if} {#if data.user.profile?.addresses && data.user.profile.addresses.length > 0}
{#each data.user.profile.addresses as address}

{address.street}

{address.city}, {address.state} {address.postalCode}

{address.country}

{/each}
{:else if !showAddressForm}

No addresses on file.

{/if}