Username and username link integrity check
This commit is contained in:
parent
1be90fff3d
commit
3664063d71
26 changed files with 636 additions and 35 deletions
|
@ -15,15 +15,17 @@ import {
|
|||
getUsernameReservationObject,
|
||||
getUsernameReservationError,
|
||||
} from '../selectors/username';
|
||||
import { getUsernameCorrupted } from '../selectors/items';
|
||||
import { getMe } from '../selectors/conversations';
|
||||
|
||||
function mapStateToProps(state: StateType): PropsDataType {
|
||||
const i18n = getIntl(state);
|
||||
const { username } = getMe(state);
|
||||
const usernameCorrupted = getUsernameCorrupted(state);
|
||||
|
||||
return {
|
||||
i18n,
|
||||
currentUsername: username,
|
||||
currentUsername: usernameCorrupted ? undefined : username,
|
||||
minNickname: getMinNickname(),
|
||||
maxNickname: getMaxNickname(),
|
||||
state: getUsernameReservationState(state),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue