Skip to content

Commit

Permalink
fix: update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
dominictb committed Jul 31, 2024
1 parent 6a1c18a commit 195691e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/ReportActionItem/MoneyRequestView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,11 @@ function MoneyRequestView({
const taxRatesDescription = taxRates?.name;
const taxRateTitle = updatedTransaction ? TransactionUtils.getTaxName(policy, updatedTransaction) : TransactionUtils.getTaxName(policy, transaction);

// Flags for allowing or disallowing editing an expense
const isSettled = ReportUtils.isSettled(moneyRequestReport?.reportID);
const isCancelled = moneyRequestReport && moneyRequestReport?.isCancelledIOU;

// Used for non-restricted fields such as: description, category, tag, billable, etc.
// Flags for allowing or disallowing editing an expense
// Used for non-restricted fields such as: description, category, tag, billable, etc...
const canUserPerformWriteAction = !!ReportUtils.canUserPerformWriteAction(report);
const canEdit = ReportActionsUtils.isMoneyRequestAction(parentReportAction) && ReportUtils.canEditMoneyRequest(parentReportAction) && canUserPerformWriteAction;
const canEditTaxFields = canEdit && !isDistanceRequest;
Expand Down

0 comments on commit 195691e

Please sign in to comment.