Skip to content

Commit

Permalink
fix(inventoryListSelectors): issues/10 last seen date context (#382)
Browse files Browse the repository at this point in the history
* inventoryListSelectors, guestsList, correct last seen date context
  • Loading branch information
cdcabrera committed Sep 29, 2020
1 parent 5798e1f commit 62141ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/redux/selectors/guestsListSelectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const selector = createSelector([statePropsFilter], response => {
const customInventoryValue = ({ key, value }) => {
switch (key) {
case rhsmApiTypes.RHSM_API_RESPONSE_INVENTORY_DATA_TYPES.LAST_SEEN:
return moment.utc(value).startOf('day').from(getCurrentDate()) || null;
return moment.utc(value).from(getCurrentDate()) || null;
default:
return value ?? null;
}
Expand Down
2 changes: 1 addition & 1 deletion src/redux/selectors/inventoryListSelectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const selector = createDeepEqualSelector([statePropsFilter], response => {
case rhsmApiTypes.RHSM_API_RESPONSE_INVENTORY_DATA_TYPES.HARDWARE:
return value?.toLowerCase() || null;
case rhsmApiTypes.RHSM_API_RESPONSE_INVENTORY_DATA_TYPES.LAST_SEEN:
return moment.utc(value).startOf('day').from(getCurrentDate()) || null;
return moment.utc(value).from(getCurrentDate()) || null;
default:
return value ?? null;
}
Expand Down

0 comments on commit 62141ec

Please sign in to comment.