Skip to content

Commit

Permalink
address review
Browse files Browse the repository at this point in the history
  • Loading branch information
kosmydel committed Mar 18, 2024
1 parent 79977f2 commit 4b764ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/libs/actions/TaxRate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ function createPolicyTax(policyID: string, taxRate: TaxRate) {
[taxRate.code]: {
...taxRate,
pendingAction: CONST.RED_BRICK_ROAD_PENDING_ACTION.ADD,
errors: null,
},
},
},
Expand All @@ -69,6 +68,7 @@ function createPolicyTax(policyID: string, taxRate: TaxRate) {
taxes: {
[taxRate.code]: {
errors: null,
pendingAction: null,
},
},
},
Expand Down
2 changes: 1 addition & 1 deletion src/types/onyx/Policy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 4b764ea

Please sign in to comment.