Skip to content

Commit

Permalink
use isSuccess
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard87 committed Jan 17, 2024
1 parent 39f7a43 commit 0c06c3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/page-configuration/change-repository-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}`;
Expand Down Expand Up @@ -142,7 +142,7 @@ export function ChangeRepositoryForm({
</div>
)}
</form>
{!isLoading && (
{!isLoading && isSuccess && (
<>
<Typography variant="body_short_bold">
Move the Deploy Key to the new repository
Expand Down

0 comments on commit 0c06c3b

Please sign in to comment.