diff --git a/packages/builder/src/pages/portal/settings/general.svelte b/packages/builder/src/pages/portal/settings/general.svelte index 77da761962..6793d1852d 100644 --- a/packages/builder/src/pages/portal/settings/general.svelte +++ b/packages/builder/src/pages/portal/settings/general.svelte @@ -25,11 +25,12 @@ let loading = false - let company = $organisation?.company - let logoUrl = $organisation.logoUrl + $: company = $organisation?.company + $: logoUrl = $organisation.logoUrl async function saveConfig() { loading = true + await toggleAnalytics() const res = await organisation.save({ ...$organisation, company }) if (res.status === 200) { notifications.success("General settings saved.") @@ -78,11 +79,7 @@