Skip to content

Commit 20ed057

Browse files
VishalS-MicrosoftCopilot
andcommitted
resloved copoilot comments
Co-authored-by: Copilot <copilot@github.com>
1 parent 5174d50 commit 20ed057

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

src/frontend/src/commonComponents/ProgressModal/progressModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ const ProgressModal: React.FC<ProgressModalProps> = ({
4141
}) => {
4242
// Calculate progress percentage based on step (stable step-level identifier)
4343
const getProgressPercentage = () => {
44-
if (migrationError) return 0; // Show 0% progress for errors
4544
if (processingCompleted) return 100;
45+
if (migrationError) return 0; // Show 0% progress for errors
4646
if (!apiData) return 0;
4747

4848
// Use apiData.step (stable: "analysis", "design", "yaml_conversion", "documentation")

src/frontend/src/pages/modernizationPage.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,7 @@ const ModernizationPage = () => {
462462
const [showLoading, setShowLoading] = useState(true);
463463
const [selectedFilebg, setSelectedFile] = useState<string | null>(null);
464464
const [selectedFileId, setSelectedFileId] = React.useState<string>("");
465+
const fileId = selectedFileId;
465466
const [expandedSections, setExpandedSections] = React.useState<string[]>([]);
466467
const [progressPercentage] = useState(0);
467468
const [allFilesCompleted, setAllFilesCompleted] = useState(false);
@@ -482,9 +483,6 @@ const ModernizationPage = () => {
482483
setFileLoading(true);
483484
const newFileUpdate = await fetchFileFromAPI(selectedFile?.fileId || "");
484485
setFileLoading(false);
485-
} else {
486-
487-
console.log(selectedFile.translatedCode);
488486
}
489487

490488
} catch (err) {

0 commit comments

Comments
 (0)