Skip to content

Commit

Permalink
rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
rezkiy37 committed Jan 29, 2024
1 parent 2544666 commit bc2689a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/ReportActionItem/MoneyRequestView.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,11 @@ function MoneyRequestView({report, parentReport, parentReportActions, policyCate
// if the policy of the report is either Collect or Control, then this report must be tied to workspace chat
const isPolicyExpenseChat = ReportUtils.isGroupPolicy(report);

const policyTagList = useMemo(() => PolicyUtils.getTagLists(policyTags), [policyTags]);
const policyTagLists = useMemo(() => PolicyUtils.getTagLists(policyTags), [policyTags]);

// Flags for showing categories and tags
const shouldShowCategory = isPolicyExpenseChat && (transactionCategory || OptionsListUtils.hasEnabledOptions(lodashValues(policyCategories)));
const shouldShowTag = useMemo(() => isPolicyExpenseChat && (transactionTag || OptionsListUtils.hasEnabledTags(policyTagList)), [isPolicyExpenseChat, policyTagList, transactionTag]);
const shouldShowTag = useMemo(() => isPolicyExpenseChat && (transactionTag || OptionsListUtils.hasEnabledTags(policyTagLists)), [isPolicyExpenseChat, policyTagLists, transactionTag]);
const shouldShowBillable = isPolicyExpenseChat && (transactionBillable || !lodashGet(policy, 'disabledFields.defaultBillable', true));

const {getViolationsForField} = useViolations(transactionViolations);
Expand Down Expand Up @@ -346,7 +346,7 @@ function MoneyRequestView({report, parentReport, parentReportActions, policyCate
</OfflineWithFeedback>
)}
{shouldShowTag &&
_.map(policyTagList, ({name}, index) => (
_.map(policyTagLists, ({name}, index) => (
<OfflineWithFeedback
key={name}
pendingAction={lodashGet(transaction, 'pendingFields.tag') || lodashGet(transaction, 'pendingAction')}
Expand Down

0 comments on commit bc2689a

Please sign in to comment.