From 6f2fbfcabe8ab623377b5e506190248b8b639577 Mon Sep 17 00:00:00 2001
From: ginsuma <13113013+ginsuma@users.noreply.github.com>
Date: Wed, 20 Sep 2023 16:45:18 +0700
Subject: [PATCH] Clean code
---
src/components/ReportActionItem/MoneyRequestView.js | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/src/components/ReportActionItem/MoneyRequestView.js b/src/components/ReportActionItem/MoneyRequestView.js
index aff4159bbcdb..6e46ee25359e 100644
--- a/src/components/ReportActionItem/MoneyRequestView.js
+++ b/src/components/ReportActionItem/MoneyRequestView.js
@@ -96,6 +96,8 @@ function MoneyRequestView({report, parentReport, shouldShowHorizontalRule, trans
}
const isDistanceRequest = TransactionUtils.isDistanceRequest(transaction);
+ const pendingAction = lodashGet(transaction, 'pendingAction');
+ const getPendingFieldAction = (fieldPath) => lodashGet(transaction, fieldPath) || pendingAction;
return (
@@ -108,7 +110,7 @@ function MoneyRequestView({report, parentReport, shouldShowHorizontalRule, trans
{hasReceipt && (
-
+
)}
-
+
-
+
-
+
-
+