From 0c06c3bd93ab0174770a722a21bb3f2d0ca1ee97 Mon Sep 17 00:00:00 2001 From: Richard Hagen Date: Wed, 17 Jan 2024 08:39:26 +0100 Subject: [PATCH] use isSuccess --- src/components/page-configuration/change-repository-form.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/page-configuration/change-repository-form.tsx b/src/components/page-configuration/change-repository-form.tsx index 9986a4802..1823cc5ab 100644 --- a/src/components/page-configuration/change-repository-form.tsx +++ b/src/components/page-configuration/change-repository-form.tsx @@ -52,7 +52,7 @@ export function ChangeRepositoryForm({ }: Props) { const [currentRepository, setCurrentRepository] = useState(repository); const [useAcknowledgeWarnings, setAcknowledgeWarnings] = useState(false); - const [mutate, { isLoading, error, data: modifyState }] = + const [mutate, { isLoading, error, data: modifyState, isSuccess }] = useModifyRegistrationDetailsMutation(); const webhookURL = `https://webhook.${radixZoneDNS}/events/github?appName=${appName}`; @@ -142,7 +142,7 @@ export function ChangeRepositoryForm({ )} - {!isLoading && ( + {!isLoading && isSuccess && ( <> Move the Deploy Key to the new repository