add latest_claimed_email to User
This commit is contained in:
parent
43fadef68d
commit
edd43c8dff
5 changed files with 7 additions and 5 deletions
2
dist/bundle.es.js
vendored
2
dist/bundle.es.js
vendored
|
@ -1236,7 +1236,7 @@ const selectUser = reselect.createSelector(selectState$2, state => state.user);
|
||||||
const selectEmailAlreadyExists = reselect.createSelector(selectState$2, state => state.emailAlreadyExists);
|
const selectEmailAlreadyExists = reselect.createSelector(selectState$2, state => state.emailAlreadyExists);
|
||||||
const selectEmailDoesNotExist = reselect.createSelector(selectState$2, state => state.emailDoesNotExist);
|
const selectEmailDoesNotExist = reselect.createSelector(selectState$2, state => state.emailDoesNotExist);
|
||||||
const selectResendingVerificationEmail = reselect.createSelector(selectState$2, state => state.resendingVerificationEmail);
|
const selectResendingVerificationEmail = reselect.createSelector(selectState$2, state => state.resendingVerificationEmail);
|
||||||
const selectUserEmail = reselect.createSelector(selectUser, user => user ? user.primary_email : null);
|
const selectUserEmail = reselect.createSelector(selectUser, user => user ? user.primary_email || user.latest_claimed_email : null);
|
||||||
const selectUserPhone = reselect.createSelector(selectUser, user => user ? user.phone_number : null);
|
const selectUserPhone = reselect.createSelector(selectUser, user => user ? user.phone_number : null);
|
||||||
const selectUserCountryCode = reselect.createSelector(selectUser, user => user ? user.country_code : null);
|
const selectUserCountryCode = reselect.createSelector(selectUser, user => user ? user.country_code : null);
|
||||||
const selectEmailToVerify = reselect.createSelector(selectState$2, selectUserEmail, (state, userEmail) => state.emailToVerify || userEmail);
|
const selectEmailToVerify = reselect.createSelector(selectState$2, selectUserEmail, (state, userEmail) => state.emailToVerify || userEmail);
|
||||||
|
|
2
dist/bundle.js
vendored
2
dist/bundle.js
vendored
|
@ -4802,7 +4802,7 @@ var selectResendingVerificationEmail = Object(reselect__WEBPACK_IMPORTED_MODULE_
|
||||||
return state.resendingVerificationEmail;
|
return state.resendingVerificationEmail;
|
||||||
});
|
});
|
||||||
var selectUserEmail = Object(reselect__WEBPACK_IMPORTED_MODULE_0__["createSelector"])(selectUser, function (user) {
|
var selectUserEmail = Object(reselect__WEBPACK_IMPORTED_MODULE_0__["createSelector"])(selectUser, function (user) {
|
||||||
return user ? user.primary_email : null;
|
return user ? user.primary_email || user.latest_claimed_email : null;
|
||||||
});
|
});
|
||||||
var selectUserPhone = Object(reselect__WEBPACK_IMPORTED_MODULE_0__["createSelector"])(selectUser, function (user) {
|
var selectUserPhone = Object(reselect__WEBPACK_IMPORTED_MODULE_0__["createSelector"])(selectUser, function (user) {
|
||||||
return user ? user.phone_number : null;
|
return user ? user.phone_number : null;
|
||||||
|
|
3
dist/flow-typed/User.js
vendored
3
dist/flow-typed/User.js
vendored
|
@ -19,7 +19,8 @@ declare type User = {
|
||||||
password_set: boolean,
|
password_set: boolean,
|
||||||
language: string,
|
language: string,
|
||||||
manual_approval_user_id: ?number,
|
manual_approval_user_id: ?number,
|
||||||
primary_email: string,
|
primary_email: ?string,
|
||||||
|
latest_claimed_email: ?string,
|
||||||
reward_status_change_trigger: string,
|
reward_status_change_trigger: string,
|
||||||
updated_at: string,
|
updated_at: string,
|
||||||
youtube_channels: ?Array<string>,
|
youtube_channels: ?Array<string>,
|
||||||
|
|
3
flow-typed/User.js
vendored
3
flow-typed/User.js
vendored
|
@ -19,7 +19,8 @@ declare type User = {
|
||||||
password_set: boolean,
|
password_set: boolean,
|
||||||
language: string,
|
language: string,
|
||||||
manual_approval_user_id: ?number,
|
manual_approval_user_id: ?number,
|
||||||
primary_email: string,
|
primary_email: ?string,
|
||||||
|
latest_claimed_email: ?string,
|
||||||
reward_status_change_trigger: string,
|
reward_status_change_trigger: string,
|
||||||
updated_at: string,
|
updated_at: string,
|
||||||
youtube_channels: ?Array<string>,
|
youtube_channels: ?Array<string>,
|
||||||
|
|
|
@ -28,7 +28,7 @@ export const selectResendingVerificationEmail = createSelector(
|
||||||
|
|
||||||
export const selectUserEmail = createSelector(
|
export const selectUserEmail = createSelector(
|
||||||
selectUser,
|
selectUser,
|
||||||
user => (user ? user.primary_email : null)
|
user => (user ? user.primary_email || user.latest_claimed_email : null)
|
||||||
);
|
);
|
||||||
|
|
||||||
export const selectUserPhone = createSelector(
|
export const selectUserPhone = createSelector(
|
||||||
|
|
Loading…
Reference in a new issue