From 4b764ead0596bf615c5eba8fa1d3b103009116f5 Mon Sep 17 00:00:00 2001 From: Jakub Kosmydel <104823336+kosmydel@users.noreply.github.com> Date: Mon, 18 Mar 2024 14:03:53 +0100 Subject: [PATCH] address review --- src/libs/actions/TaxRate.ts | 2 +- src/types/onyx/Policy.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/actions/TaxRate.ts b/src/libs/actions/TaxRate.ts index dba65ab80c34..adddfb2bc15b 100644 --- a/src/libs/actions/TaxRate.ts +++ b/src/libs/actions/TaxRate.ts @@ -53,7 +53,6 @@ function createPolicyTax(policyID: string, taxRate: TaxRate) { [taxRate.code]: { ...taxRate, pendingAction: CONST.RED_BRICK_ROAD_PENDING_ACTION.ADD, - errors: null, }, }, }, @@ -69,6 +68,7 @@ function createPolicyTax(policyID: string, taxRate: TaxRate) { taxes: { [taxRate.code]: { errors: null, + pendingAction: null, }, }, }, diff --git a/src/types/onyx/Policy.ts b/src/types/onyx/Policy.ts index 0072d9594108..f1de9b13bc9d 100644 --- a/src/types/onyx/Policy.ts +++ b/src/types/onyx/Policy.ts @@ -39,7 +39,7 @@ type TaxRate = OnyxCommon.OnyxValueWithOfflineFeedback<{ /** The value of the tax rate as percentage. */ value: string; - /** The code associated with the tax rate. */ + /** The code associated with the tax rate. If a tax is created in old dot, code field is undefined */ code?: string; /** This contains the tax name and tax value as one name */