From 25282c94554952e0ffdd29bf76cf1f014b465a55 Mon Sep 17 00:00:00 2001 From: Rory Powell Date: Wed, 14 Sep 2022 22:37:33 +0100 Subject: [PATCH] Show licensed group exceeded notification --- .../src/pages/builder/portal/manage/groups/index.svelte | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/builder/src/pages/builder/portal/manage/groups/index.svelte b/packages/builder/src/pages/builder/portal/manage/groups/index.svelte index ddd734dd69..bb8f18ff13 100644 --- a/packages/builder/src/pages/builder/portal/manage/groups/index.svelte +++ b/packages/builder/src/pages/builder/portal/manage/groups/index.svelte @@ -38,7 +38,11 @@ try { await groups.actions.save(group) } catch (error) { - notifications.error(`Failed to save group`) + if (error.status === 400) { + notifications.error(error.message) + } else { + notifications.error(`Failed to save group`) + } } }