fix leasingPeriod doesn't change self state value

This commit is contained in:
Chika 2021-04-04 20:57:32 +03:00
parent 8ff1f31355
commit cf9ef6fb83

View File

@ -1350,7 +1350,9 @@ const reactionEffects: IReactionEffect[] = [
},
effect: ({ graphType, leasingPeriod }) => {
if (graphType === 100000003 && leasingPeriod < 14) {
calculationStore.setValue('leasingPeriod', 14);
setTimeout(() => {
calculationStore.setValue('leasingPeriod', 14);
}, 0);
openNotification({
type: 'warning',
title: 'Внимание',