fix: code review changes

This commit is contained in:
Rafael Taranto 2023-10-16 16:58:47 +01:00
parent e58acdb8be
commit 1e1bfe58a4
3 changed files with 10 additions and 10 deletions

View file

@ -127,7 +127,7 @@ const getCashUnitFieldName = (step, numberOfCassettes, numberOfRecyclers) => {
category: 'cassette'
}
const recyclerStepsStart = CASHBOX_STEP + numberOfCassettes + 1
if (step < recyclerStepsStart + numberOfRecyclers * 2)
if (step < recyclerStepsStart + numberOfRecyclers)
return {
name: `recycler${Math.ceil(step - recyclerStepsStart + 1)}`,
category: 'recycler'