From ea93be95756c1dd6b4b37c29db7a5e189b42939a Mon Sep 17 00:00:00 2001 From: Rotimi Best Date: Mon, 19 Aug 2024 19:26:41 +0100 Subject: [PATCH] fix: theme switching --- .../src/lib/components/Org/Settings/OrgSettings.svelte | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/dashboard/src/lib/components/Org/Settings/OrgSettings.svelte b/apps/dashboard/src/lib/components/Org/Settings/OrgSettings.svelte index e1c3a965..05628ea4 100644 --- a/apps/dashboard/src/lib/components/Org/Settings/OrgSettings.svelte +++ b/apps/dashboard/src/lib/components/Org/Settings/OrgSettings.svelte @@ -13,6 +13,7 @@ import { t } from '$lib/utils/functions/translations'; import { isFreePlan } from '$lib/utils/store/org'; import { updateOrgNameValidation } from '$lib/utils/functions/validator'; + import { setTheme } from '$lib/utils/functions/theme'; let avatar; @@ -42,6 +43,8 @@ .concat(!!t ? ' ' : '', t); $currentOrg.theme = t; + setTheme(t); + const res = await supabase .from('organization') .update({ theme: t }) @@ -63,7 +66,7 @@ loading = true; const updates = { - name: $currentOrg.name, + name: $currentOrg.name }; if (avatar) {