fix 100000004 case
This commit is contained in:
parent
37d70b1c46
commit
234fe462da
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user