fix: insurance-table fingap row
This commit is contained in:
parent
e6289b7174
commit
e9edf189e7
@ -57,7 +57,7 @@ export const DEFAULT_FINGAP_ROW: Insurance.RowValues = {
|
||||
insuranceCompany: null,
|
||||
insured: 100_000_000,
|
||||
insCost: 0,
|
||||
insTerm: null,
|
||||
insTerm: 100_000_000,
|
||||
};
|
||||
|
||||
export const defaultValues: Insurance.RowValues[] = [
|
||||
|
||||
@ -68,17 +68,17 @@ export default function reactions({ store, apolloClient, queryClient }: ProcessC
|
||||
.row('fingap')
|
||||
.setValue('insured', 100_000_000)
|
||||
.setValue('insCost', 0)
|
||||
.setValue('insTerm', leasingPeriod < 13 ? 100_000_000 : null)
|
||||
.unblock('insured');
|
||||
|
||||
if (leasingPeriod < 13) {
|
||||
$tables.insurance.row('fingap').block('insTerm');
|
||||
$tables.insurance.row('fingap').block('insTerm').setValue('insTerm', 100_000_000);
|
||||
} else {
|
||||
$tables.insurance.row('fingap').unblock('insTerm');
|
||||
}
|
||||
},
|
||||
{
|
||||
equals: comparer.shallow,
|
||||
fireImmediately: true,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user