Skip to content

Commit

Permalink
Update src/components/MoneyTemporaryForRefactorRequestConfirmationLis…
Browse files Browse the repository at this point in the history
…t.js

Co-authored-by: Alex Beaman <[email protected]>
  • Loading branch information
cubuspl42 and Beamanator authored Feb 14, 2024
1 parent 4b73baf commit d8c83ca
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -317,8 +317,8 @@ function MoneyTemporaryForRefactorRequestConfirmationList({
const isMerchantEmpty = !iouMerchant || iouMerchant === CONST.TRANSACTION.PARTIAL_TRANSACTION_MERCHANT;
const isMerchantRequired = isPolicyExpenseChat && !isScanRequest && shouldShowMerchant;

const isCategoryRequired = canUseViolations && lodashGet(policy, 'requiresCategory', false);
const isTagRequired = canUseViolations && lodashGet(policy, 'requiresTag', false);
const isCategoryRequired = canUseViolations && (policy?.requiresCategory ?? false);
const isTagRequired = canUseViolations && (policy?.requiresTag ?? false);

useEffect(() => {
if ((!isMerchantRequired && isMerchantEmpty) || !merchantError) {
Expand Down

0 comments on commit d8c83ca

Please sign in to comment.