From 2472b0baf8e198e788bcbd6e91246e8b6a1ea589 Mon Sep 17 00:00:00 2001 From: Yauheni Date: Mon, 9 Oct 2023 12:57:26 +0200 Subject: [PATCH] Fix comment --- src/components/MoneyRequestHeader.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/MoneyRequestHeader.js b/src/components/MoneyRequestHeader.js index 55c7fcd36f4d..5da5c057cabe 100644 --- a/src/components/MoneyRequestHeader.js +++ b/src/components/MoneyRequestHeader.js @@ -80,15 +80,15 @@ function MoneyRequestHeader({session, parentReport, report, parentReportAction, const isScanning = TransactionUtils.hasReceipt(transaction) && TransactionUtils.isReceiptBeingScanned(transaction); - const shouldShowThreeDotsButton = isActionOwner && !isSettled && !isApproved; + const canModifyRequest = isActionOwner && !isSettled && !isApproved; useEffect(() => { - if (shouldShowThreeDotsButton) { + if (canModifyRequest) { return; } setIsDeleteModalVisible(false); - }, [shouldShowThreeDotsButton]); + }, [canModifyRequest]); return ( <> @@ -96,7 +96,7 @@ function MoneyRequestHeader({session, parentReport, report, parentReportAction,