Skip to content

Commit

Permalink
fix(productViewOpenShiftContainer): ent-3509 core hours display (#599)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdcabrera committed Mar 25, 2021
1 parent 545afb1 commit a76d139
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,7 @@ exports[`ProductViewOpenShiftContainer Component should render a non-connected c
"isSortable": true,
},
Object {
"cell": [Function],
"cellWidth": 15,
"id": "coreHours",
"isSortable": true,
Expand Down Expand Up @@ -519,7 +520,7 @@ Object {
</React.Fragment>,
},
Object {
"title": 12.53,
"title": "12.53",
},
Object {
"title": <DateFormat
Expand Down Expand Up @@ -640,7 +641,7 @@ Object {
"title": "lorem",
},
Object {
"title": "",
"title": "0.00",
},
[Function],
],
Expand Down Expand Up @@ -766,6 +767,7 @@ Array [
"isSortable": true,
},
Object {
"cell": [Function],
"cellWidth": 15,
"id": "coreHours",
"isSortable": true,
Expand Down
3 changes: 3 additions & 0 deletions src/components/productView/productViewOpenShiftContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,9 @@ ProductViewOpenShiftContainer.defaultProps = {
},
{
id: 'coreHours',
cell: data =>
(typeof data?.coreHours?.value === 'number' && Number.parseFloat(data?.coreHours?.value).toFixed(2)) ||
`0.00`,
isSortable: true,
isWrappable: true,
cellWidth: 15
Expand Down

0 comments on commit a76d139

Please sign in to comment.