mirror of
https://github.com/wassname/talk.git
synced 2026-07-03 00:36:07 +08:00
Prevent showing add email address dialog when usernam is not set
This commit is contained in:
@@ -19,6 +19,13 @@ const withData = withFragments({
|
||||
me {
|
||||
id
|
||||
email
|
||||
state {
|
||||
status {
|
||||
username {
|
||||
status
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
settings {
|
||||
requireEmailConfirmation
|
||||
@@ -33,6 +40,7 @@ export default compose(
|
||||
withData,
|
||||
excludeIf(
|
||||
({ root: { me }, inProgress }) =>
|
||||
me.state.status.username.status === 'UNSET' ||
|
||||
!((me && !me.email) || (me && me.email && inProgress))
|
||||
)
|
||||
)(AddEmailAddressDialog);
|
||||
|
||||
Reference in New Issue
Block a user