From 87d2a954a31975a192970aa507e300b159a6aa54 Mon Sep 17 00:00:00 2001 From: Alex Tran Date: Fri, 12 Aug 2022 22:29:24 -0500 Subject: [PATCH] Fixed error handling with catch block --- .../components/forms/edit-user-form.svelte | 184 ++++++++++-------- 1 file changed, 101 insertions(+), 83 deletions(-) diff --git a/web/src/lib/components/forms/edit-user-form.svelte b/web/src/lib/components/forms/edit-user-form.svelte index 83b2a4ba7..d881e3570 100644 --- a/web/src/lib/components/forms/edit-user-form.svelte +++ b/web/src/lib/components/forms/edit-user-form.svelte @@ -1,103 +1,121 @@
-
- - -

Edit user

-
+
+ + +

Edit user

+
-
-
- - -
+ +
+ + +
+
+ + +
-
- - -
+
+ + +
-
- - -
+ {#if error} +

{error}

+ {/if} - - {#if error} -

{error}

- {/if} - - {#if success} -

{success}

- {/if} -
- - -
-
+ {#if success} +

{success}

+ {/if} +
+ + +
+