From 0529ae7487dd8188150dab8d321a00b827192b34 Mon Sep 17 00:00:00 2001 From: vchikalkin Date: Mon, 17 Apr 2023 15:43:32 +0300 Subject: [PATCH] fix tbxVehicleTaxInYear --- apps/web/process/gibdd/reactions.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/web/process/gibdd/reactions.ts b/apps/web/process/gibdd/reactions.ts index c38c92c..67f6632 100644 --- a/apps/web/process/gibdd/reactions.ts +++ b/apps/web/process/gibdd/reactions.ts @@ -202,7 +202,7 @@ export function common({ store, apolloClient, queryClient }: ProcessContext) { }, context ); - const { tax, error } = await queryClient.fetchQuery( + const { tax } = await queryClient.fetchQuery( ['1c', 'trans-tax', carCategory, leaseObjectMotorPower, leaseObjectYear], request, { @@ -210,7 +210,7 @@ export function common({ store, apolloClient, queryClient }: ProcessContext) { } ); - if (!error && tax) { + if (tax) { $calculation.element('tbxVehicleTaxInYear').setValue(tax); } else { $calculation.element('tbxVehicleTaxInYear').resetValue();