fix ca8d060

This commit is contained in:
Chika 2022-10-14 13:55:17 +03:00
parent 073dd1ac01
commit 600bb1a730

View File

@ -435,7 +435,9 @@ export default function paymentsReactions(
shift(seasons, shiftNumber)
);
const shiftedPeriods = new Set(
seasonsConstants.SEASONS_PERIODS[seasonType].map((x) => x + shiftNumber)
seasonsConstants.SEASONS_PERIODS[seasonType].map(
(position) => (position + shiftNumber) % seasonsConstants.SEASONS_PERIOD_NUMBER
)
);
const rows: Row[] = payments.map((value, i) => ({
value,
@ -493,7 +495,9 @@ export default function paymentsReactions(
shift(seasons, shiftNumber)
);
const shiftedPeriods = new Set(
seasonsConstants.SEASONS_PERIODS[seasonType].map((x) => x + shiftNumber)
seasonsConstants.SEASONS_PERIODS[seasonType].map(
(position) => (position + shiftNumber) % seasonsConstants.SEASONS_PERIOD_NUMBER
)
);
const rows: Row[] = payments.map((value, i) => ({
value,