diff --git a/src/components/CustomPages/SE/SE018EditPage.js b/src/components/CustomPages/SE/SE018EditPage.js index c477fff..787c380 100644 --- a/src/components/CustomPages/SE/SE018EditPage.js +++ b/src/components/CustomPages/SE/SE018EditPage.js @@ -147,21 +147,15 @@ class SE018EditPage extends React.Component { }) } onSignIn = () => { - var ud = null - if (!this.state.data || (this.state.data.STATUS !== 1) || !this.state.data.Nav_Users) { - if (this.state.AllUsersRecord) { - var checkMore = this.state.AllUsersRecord.find(e => e.USER_ID == this.props.login.user.ID) - if (!checkMore.IS_RESEND) { - return; - } else { - ud = checkMore - } - } else { + var ud = this.state.data.Nav_Users.find(it => it.USER_ID === this.props.login.user.ID) + if ((ud == null || ud == undefined) && this.state.AllUsersRecord) { + var checkMore = this.state.AllUsersRecord.find(e => e.USER_ID == this.props.login.user.ID) + if (!checkMore.IS_RESEND) { return; + } else { + ud = checkMore } } - if (ud == null) - ud = this.state.data.Nav_Users.find(it => it.USER_ID === this.props.login.user.ID) if (!ud) { return; }