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