Skip to content

Commit

Permalink
fix(useRhsmSelectors): import cleanup (#817)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdcabrera committed Nov 29, 2021
1 parent 6077499 commit a890a86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/redux/hooks/useRhsmSelectors.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useSelector } from 'react-redux';
import { useRouteDetail } from '../../components/router/routerContext';
import { selector } from '../selectors/appMessagesSelectors';
import { reduxSelectors } from '../selectors';

/**
* Get app messages selector results.
Expand All @@ -15,7 +15,7 @@ const useAppMessages = ({
useSelector: useAliasSelector = useSelector
} = {}) => {
const { pathParameter: productId, productParameter: viewId } = useAliasRouteDetail() || {};
const result = useAliasSelector(state => selector(state, { productId, viewId }));
const result = useAliasSelector(state => reduxSelectors.appMessages.appMessages(state, { productId, viewId }));
return {
...result
};
Expand Down

0 comments on commit a890a86

Please sign in to comment.