Skip to content

Commit

Permalink
Fix Building name validation
Browse files Browse the repository at this point in the history
  • Loading branch information
nizetic committed Feb 1, 2024
1 parent 57764a2 commit a326252
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/common/store/progress-bar-steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,9 @@ export const useCompletedSteps = () => {
}
}

// Facitlity name is required for places preview
if (
facilityName.length > 0 &&
(!isPlacesPreview || facilityName.length > 0) &&
allLevelsCompleted(levels) &&
isLevelNameValid(facilityName) &&
levels.every(level => getVerticalExtentError(level.verticalExtent) === null)
Expand Down

0 comments on commit a326252

Please sign in to comment.