- The fix is in! Linty fresh and pretty...
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { Map } from 'immutable';
|
||||
import { createSelector } from 'reselect';
|
||||
|
||||
const getState = (state) => state;
|
||||
@@ -16,7 +17,7 @@ export const getAuctionStatus = (state, itemId) => state.getIn(['actions', itemI
|
||||
|
||||
export const getAuctionStatuses = createSelector(
|
||||
[getState],
|
||||
(state) => state.get('actions') || new Map(),
|
||||
(state) => state.get('autions') || new Map(),
|
||||
);
|
||||
|
||||
export const getItemsIdsWithNoBids = createSelector(
|
||||
|
||||
@@ -18,7 +18,27 @@ export const getProfileAvatarUrl = createSelector(
|
||||
(profile) => profile.get('avatar'),
|
||||
);
|
||||
|
||||
export const getUserId = createSelector(
|
||||
[getProfile],
|
||||
(profile) => profile.get('id'),
|
||||
);
|
||||
|
||||
export const getUserInitials = createSelector(
|
||||
[getProfile],
|
||||
(profile) => profile.get('initials'),
|
||||
);
|
||||
|
||||
export const isAllowedToBid = createSelector(
|
||||
[getProfile],
|
||||
(profile) => profile.get('isAllowedToBid'),
|
||||
);
|
||||
|
||||
export const isGeneratedNomDeBid = createSelector(
|
||||
[getProfile],
|
||||
(profile) => profile.get('generatedNomDeBid'),
|
||||
);
|
||||
|
||||
export const isRegisteredAccount = createSelector(
|
||||
[getProfile],
|
||||
(profile) => profile.get('isRegisteredAccount'),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user