-
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
Display the message for last requests with foreign currency that are created in offline mode #34011
Changes from 5 commits
ad03aca
9647635
ca811b3
3b548b4
43c38ba
ea5c3a2
6f3693e
bd4d978
4cfb299
db3e96c
86a4108
7fcdc58
3bd5950
e16d282
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 |
---|---|---|
|
@@ -89,9 +89,6 @@ const propTypes = { | |
/** Should the comment have the appearance of being grouped with the previous comment? */ | ||
displayAsGroup: PropTypes.bool.isRequired, | ||
|
||
/** Is this the most recent IOU Action? */ | ||
isMostRecentIOUReportAction: PropTypes.bool.isRequired, | ||
|
||
/** Should we display the new marker on top of the comment? */ | ||
shouldDisplayNewMarker: PropTypes.bool.isRequired, | ||
|
||
|
@@ -346,10 +343,9 @@ function ReportActionItem(props) { | |
const iouReportID = originalMessage.IOUReportID ? originalMessage.IOUReportID.toString() : '0'; | ||
children = ( | ||
<MoneyRequestAction | ||
chatReportID={props.report.reportID} | ||
chatReportID={originalMessage.IOUReportID ? props.report.chatReportID : props.report.reportID} | ||
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. Can you just add a comment explaining this check so the next person knows why we needed to do this? 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. Added a comment. 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. Please ensure that this is in proper English. You can use freely available tools like ChatGPT 3. 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. Try this
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. I updated the comment. |
||
requestReportID={iouReportID} | ||
action={props.action} | ||
isMostRecentIOUReportAction={props.isMostRecentIOUReportAction} | ||
isHovered={hovered} | ||
contextMenuAnchor={popoverAnchorRef} | ||
checkIfContextMenuActive={toggleContextMenuFromActiveReportAction} | ||
|
@@ -815,7 +811,6 @@ export default compose( | |
(prevProps, nextProps) => | ||
prevProps.displayAsGroup === nextProps.displayAsGroup && | ||
prevProps.draftMessage === nextProps.draftMessage && | ||
prevProps.isMostRecentIOUReportAction === nextProps.isMostRecentIOUReportAction && | ||
prevProps.shouldDisplayNewMarker === nextProps.shouldDisplayNewMarker && | ||
_.isEqual(prevProps.emojiReactions, nextProps.emojiReactions) && | ||
_.isEqual(prevProps.action, nextProps.action) && | ||
|
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.
Commenting on
|| 0
...The relevant function argument is typed:
transactionID: string
So I think that either the argument type or the passed value is not correct