fix 100000004 case

This commit is contained in:
Chika 2020-10-06 20:20:51 +03:00
parent 37d70b1c46
commit 234fe462da

View File

@ -90,14 +90,14 @@ const tablePayments: ITable = {
for (let i in calculationStore.tables[tableName].rows) {
const currRow =
calculationStore.tables[tableName].rows[parseInt(i)];
const prevRow =
calculationStore.tables[tableName].rows[parseInt(i) - 1];
const nextRow =
calculationStore.tables[tableName].rows[parseInt(i) + 1];
if (
parseInt(i) > 0 &&
parseInt(i) < 4 &&
currRow &&
prevRow &&
currRow.paymentRelation?.value < prevRow.paymentRelation?.value
nextRow &&
currRow.paymentRelation?.value > nextRow.paymentRelation?.value
) {
calculationStore.setTableRow(
tableName,