(feature) get nextDay work with new refactoring

This commit is contained in:
Julien Calixte
2023-07-22 13:41:59 +02:00
parent ff11534291
commit ca3cbe3470
4 changed files with 57 additions and 15 deletions

View File

@@ -24,8 +24,17 @@ export const createFeatureBoard = () => {
if (isFeatureLive) {
return
}
feature.leadTime++
switch (feature.status) {
case 'doing':
feature.status = 'done'
break
case 'done':
feature.status = 'doing'
feature.step--
break
}
})
return features