diff --git a/src/components/git-sync/GitSyncSteps.tsx b/src/components/git-sync/GitSyncSteps.tsx
index b15ebf08..be764f07 100644
--- a/src/components/git-sync/GitSyncSteps.tsx
+++ b/src/components/git-sync/GitSyncSteps.tsx
@@ -64,6 +64,16 @@ export function GitSyncSteps({ projectId, onClose }: GitSyncStepsProps) {
setCurrentStep('init-success');
};
+ if (currentStep === 'init-success') {
+ return (
+
+ );
+ }
+
// Don't render anything while loading git status
if (isGitStatusLoading) {
return (
@@ -109,15 +119,5 @@ export function GitSyncSteps({ projectId, onClose }: GitSyncStepsProps) {
);
}
- if (currentStep === 'init-success') {
- return (
-
- );
- }
-
return null;
}