Render InitSuccess above others

This commit is contained in:
Alex Gleason committed 2025-12-24 19:00:18 -06:00
1 parent 5f054a9a4a
commit ddc59a74ff
1 file changed
+10 -10
+10 -10
View File
@@ -64,6 +64,16 @@ export function GitSyncSteps({ projectId, onClose }: GitSyncStepsProps) {
setCurrentStep('init-success');
};
if (currentStep === 'init-success') {
return (
<InitSuccessStep
projectId={projectId}
onChangeStep={setCurrentStep}
onClose={onClose}
/>
);
}
// 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 (
<InitSuccessStep
projectId={projectId}
onChangeStep={setCurrentStep}
onClose={onClose}
/>
);
}
return null;
}