From e86021caf8530c0da667a621fde8ca8c9d0a8946 Mon Sep 17 00:00:00 2001 From: Usman Baig Date: Fri, 13 Mar 2026 19:35:12 +0100 Subject: [PATCH] fix: await subscription fetch before opening delete modal The delete button fired loadSubscription() without awaiting it, so the modal opened with subscription=null and the destruction summary (sites count, active subscription) never rendered. --- components/settings/OrganizationSettings.tsx | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/components/settings/OrganizationSettings.tsx b/components/settings/OrganizationSettings.tsx index a82ee08..9c67627 100644 --- a/components/settings/OrganizationSettings.tsx +++ b/components/settings/OrganizationSettings.tsx @@ -73,6 +73,7 @@ export default function OrganizationSettings() { const [showDeletePrompt, setShowDeletePrompt] = useState(false) const [deleteConfirm, setDeleteConfirm] = useState('') const [isDeleting, setIsDeleting] = useState(false) + const [isLoadingDeleteData, setIsLoadingDeleteData] = useState(false) // Members State const [members, setMembers] = useState([]) @@ -679,12 +680,24 @@ export default function OrganizationSettings() {

Permanently delete this organization and all its data.