-
Notifications
You must be signed in to change notification settings - Fork 90
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
[SALAD-23967] WebApp: Earning Table - added #1272
base: master
Are you sure you want to change the base?
Conversation
|
||
const getRows = (): Array<TableRow> => { | ||
return machines | ||
.filter((machine) => machine.machine_id) |
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.
why do we need this filter?
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.
property machine_id
is marked as optional by kioto types. I don't think it's a relevant case, but we should handle it
console.log('daysShowing ===> ', daysShowing) | ||
console.log('earningsPerMachine ===> ', earningsPerMachine) |
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.
remove?
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.
we have temporary keep them to avoid ts errors. Current implementation is partial and we will need this data in future - so no need to remove these props and related code
Task on hold