Skip to content

Commit 01830b0

Browse files
committed
fix: update show reimbursable toggle condition
1 parent 6a94291 commit 01830b0

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/components/ReportActionItem/MoneyRequestView.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,7 @@ function MoneyRequestView({allReports, report, policy, shouldShowAnimatedBackgro
246246
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
247247
const shouldShowTag = isPolicyExpenseChat && (transactionTag || hasEnabledTags(policyTagLists));
248248
const shouldShowBillable = isPolicyExpenseChat && (!!transactionBillable || !(policy?.disabledFields?.defaultBillable ?? true) || !!updatedTransaction?.billable);
249-
const shouldShowReimbursable =
250-
isPolicyExpenseChat && (!!transactionReimbursable || !(policy?.disabledFields?.reimbursable ?? true) || !!updatedTransaction?.reimbursable) && !isCardTransaction && !isInvoice;
249+
const shouldShowReimbursable = isPolicyExpenseChat && !!policy?.disabledFields?.reimbursable && !isCardTransaction && !isInvoice;
251250
const canEditReimbursable = canUserPerformWriteAction && canEditFieldOfMoneyRequest(parentReportAction, CONST.EDIT_REQUEST_FIELD.REIMBURSABLE);
252251
const shouldShowAttendees = useMemo(() => shouldShowAttendeesTransactionUtils(iouType, policy), [iouType, policy]);
253252

0 commit comments

Comments
 (0)