Skip to content

Commit

Permalink
fix(nbWorkers): invert logic disable button
Browse files Browse the repository at this point in the history
  • Loading branch information
tristan-gueguen committed Jan 7, 2025
1 parent 366a984 commit 5779ebb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/signup/company/SelectSiretsStep.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ export function SelectSiretsStep({ facilities, setFacilities, ...props }) {
}

if (
!selectedSirets
selectedSirets
.map(f => f.nbWorkers)
.every(nb => nb < MAX_NB_WORKERS && nb > MIN_NB_WORKERS)
.some(nb => nb < MIN_NB_WORKERS || nb > MAX_NB_WORKERS)
) {
return false;
}
Expand Down

0 comments on commit 5779ebb

Please sign in to comment.