basel00omar commited on
Commit
bf94a94
·
1 Parent(s): 41dd6f3

Fix: correctly evaluate isDone for old QTO projects

Browse files
frontend/src/components/Projects.jsx CHANGED
@@ -115,7 +115,8 @@ export default function Projects({ token, isArabic, onSelectProject, onNavigate,
115
  ) : (
116
  <div style={{ display: 'flex', flexDirection: 'column', gap: '15px' }}>
117
  {qtoProjects.map((proj) => {
118
- const isDone = proj.current_step >= 7;
 
119
  return (
120
  <div
121
  key={proj.id} className="glass-card" onClick={isDone ? undefined : () => { onSelectProject(proj); onNavigate('workflow'); }}
 
115
  ) : (
116
  <div style={{ display: 'flex', flexDirection: 'column', gap: '15px' }}>
117
  {qtoProjects.map((proj) => {
118
+ const step = proj.current_step || 8;
119
+ const isDone = step >= 7;
120
  return (
121
  <div
122
  key={proj.id} className="glass-card" onClick={isDone ? undefined : () => { onSelectProject(proj); onNavigate('workflow'); }}