We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent babbfc4 commit c55e37bCopy full SHA for c55e37b
frontend/src/routes/order/cart/+page.svelte
@@ -69,8 +69,13 @@
69
{/if}
70
{/each}
71
<div class="flex justify-end">
72
- <button class="cursor-pointer bg-blue-400 px-4 py-2" onclick={() => order()}>Order now</button
73
- >
+ {#if authStore.isValid}
+ <button class="cursor-pointer bg-blue-400 px-4 py-2" onclick={() => order()}
74
+ >Order now</button
75
+ >
76
+ {:else}
77
+ <p class="text-red-400">You need to be logged in to order pets.</p>
78
+ {/if}
79
</div>
80
81
{:catch error}
0 commit comments