Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
[TS migration] Migrate 'ReportActionItemMoneyRequest' component to TypeScript #34564
[TS migration] Migrate 'ReportActionItemMoneyRequest' component to TypeScript #34564
Changes from 5 commits
a56bce1
0f627ba
02296e8
6b8c3a3
03a0c4c
7a64f0c
6c8137a
6637583
e1e39e1
ccef5e0
fb3f8d1
60d8105
69a4df4
be37558
c8438bf
01fa104
f65fbe0
73e5685
696f337
c07a39e
a5f3dba
eb4631e
8b9bac8
00c5436
15cffe2
dedfe12
e7ff217
5e1e232
d3f64c9
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
@VickyStash heads up! All IDs must be numbers, this created this bug #35904. :)
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.
accountIDs are numbers and reportIDs are strings, right? 🤔
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.
@youssef-lr reportIDs are expected to be string, otherwise they can overflow, right?
Unless this changed lately
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.
Yeah sorry my bad, they are all numbers in the backend, but in JS
reportIDs
&reportActionIDs
are strings. In this specific example it doesn't make sense to use'0'
, because the condition below this line evaluates tofalse
when it should evaluate totrue
if (!childReportID) {
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.
@youssef-lr you are right, my bad!
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.
Commented in your PR @youssef-lr , I don't think we should default to 0 either
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.
Yeah that sounds good, updated.