Skip to content

Commit

Permalink
safe check for isTaxTrackingEnabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Pujan92 committed Jan 5, 2024
1 parent cb00747 commit 548830a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ function MoneyTemporaryForRefactorRequestConfirmationList({
const shouldShowTags = isPolicyExpenseChat && OptionsListUtils.hasEnabledOptions(_.values(policyTagList));

// A flag for showing tax rate
const shouldShowTax = isPolicyExpenseChat && policy.isTaxTrackingEnabled;
const shouldShowTax = isPolicyExpenseChat && policy && policy.isTaxTrackingEnabled;

// A flag for showing the billable field
const shouldShowBillable = !lodashGet(policy, 'disabledFields.defaultBillable', true);
Expand Down

0 comments on commit 548830a

Please sign in to comment.