Merge pull request #1902 from RafaelTaranto/fix/cash-unit-loading

LAM-1480 fix: ramda range now requires an int
This commit is contained in:
Rafael Taranto 2025-07-03 14:10:20 +01:00 committed by GitHub
commit c5f38f0572
2 changed files with 2 additions and 2 deletions

View file

@ -144,7 +144,7 @@ const CashUnitDetails = ({
</div>
{it !== machine.numberOfRecyclers / 2 && <VerticalLine />}
</>
))(R.range(1, machine.numberOfRecyclers / 2 + 1))}
))(R.range(1, Math.ceil(machine.numberOfRecyclers / 2) + 1))}
</>
)}
</div>

View file

@ -105,7 +105,7 @@ const getElements = (config, bills, setWizard, widths, setMachineId) => {
<span className="h-full w-[1px] bg-comet2" />
)}
</>
))(R.range(1, m.numberOfRecyclers / 2 + 1))}
))(R.range(1, Math.ceil(m.numberOfRecyclers / 2) + 1))}
</div>
</div>
)