From 5c84cd71b8ac0f7ed34fdfa6a702a3328c0d48ea Mon Sep 17 00:00:00 2001 From: Stephen Adamson Date: Sun, 17 May 2026 00:28:55 +0100 Subject: [PATCH] fix: hide notification preferences section from admin users --- frontend/src/routes/account/+page.svelte | 25 +++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/frontend/src/routes/account/+page.svelte b/frontend/src/routes/account/+page.svelte index 9c1d187..31a96e3 100644 --- a/frontend/src/routes/account/+page.svelte +++ b/frontend/src/routes/account/+page.svelte @@ -925,9 +925,11 @@
Your loyalty card is full! Your next completed appointment will receive 10% off. -
- - {/if} + + + {/if} + + {/if} @@ -1171,13 +1173,14 @@ - -
-

Notifications

-

- Choose how you receive booking reminders and updates -

-
+ + {#if authStore.currentUser?.role !== 'admin'} +
+

Notifications

+

+ Choose how you receive booking reminders and updates +

+
Email
@@ -1241,7 +1244,7 @@
-
+ {/if}