fix: ramda range now requires an int

This commit is contained in:
Rafael Taranto 2025-07-01 16:56:48 +01:00
parent f49b8f4f46
commit 5d15895d03
2 changed files with 2 additions and 2 deletions

View file

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

View file

@ -105,7 +105,7 @@ const getElements = (config, bills, setWizard, widths, setMachineId) => {
<span className="h-full w-[1px] bg-comet2" /> <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>
</div> </div>
) )