-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prevent additional requests on settled request reports #19033
Changes from 10 commits
d1faf96
aa43c09
82a6ddb
7b4ffdf
5d8e419
2783f0a
e6f4e8b
872ca23
0f218a7
8f8e58f
f2631e0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -99,10 +99,10 @@ function getFormattedAmount(reportAction) { | |
*/ | ||
function isTransactionThread(parentReportAction) { | ||
const originalMessage = lodashGet(parentReportAction, 'originalMessage', {}); | ||
return ( | ||
return Boolean( | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. NAB: @mountiny why is this change needed? The logical operators should return a boolean anyway, right? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. oh nvm, just saw your comment after a page refresh https://github.com/Expensify/App/pull/19033/files#r1197091432 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. removed |
||
parentReportAction && | ||
parentReportAction.actionName === CONST.REPORT.ACTIONS.TYPE.IOU && | ||
(originalMessage.type === CONST.IOU.REPORT_ACTION_TYPE.CREATE || (originalMessage.type === CONST.IOU.REPORT_ACTION_TYPE.PAY && originalMessage.IOUDetails)) | ||
parentReportAction.actionName === CONST.REPORT.ACTIONS.TYPE.IOU && | ||
(originalMessage.type === CONST.IOU.REPORT_ACTION_TYPE.CREATE || (originalMessage.type === CONST.IOU.REPORT_ACTION_TYPE.PAY && originalMessage.IOUDetails)), | ||
); | ||
mountiny marked this conversation as resolved.
Show resolved
Hide resolved
|
||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just confirmed in slack the comment is not needed anymore