diff --git a/apps/super-admin/src/pages/BusinessesPage.tsx b/apps/super-admin/src/pages/BusinessesPage.tsx index 266e01b..b415c5d 100644 --- a/apps/super-admin/src/pages/BusinessesPage.tsx +++ b/apps/super-admin/src/pages/BusinessesPage.tsx @@ -398,10 +398,6 @@ export function BusinessesPage() { } }) - if (editBusiness?.id === b.id) { - setEditPrimaryColor(primaryColor) - } - try { await updateBusinessPrimaryColor(b.id, primaryColor) showToast(`Theme updated for "${b.name}".`, 'success') @@ -416,10 +412,6 @@ export function BusinessesPage() { } }) - if (editBusiness?.id === b.id) { - setEditPrimaryColor(currentColor) - } - showToast( err instanceof ApiError ? err.message : 'Unable to update theme.', 'error', @@ -446,10 +438,6 @@ export function BusinessesPage() { } }) - if (editBusiness?.id === b.id) { - setEditDefaultLocale(defaultLocale) - } - try { await updateBusinessDefaultLocale(b.id, defaultLocale) showToast(`Default language updated for "${b.name}".`, 'success') @@ -464,10 +452,6 @@ export function BusinessesPage() { } }) - if (editBusiness?.id === b.id) { - setEditDefaultLocale(currentLocale) - } - showToast( err instanceof ApiError ? err.message : 'Unable to update default language.', 'error',