Commit 8c6eb8a2 authored by nano's avatar nano

fix exists

parent 7d982233
...@@ -4,6 +4,9 @@ html, body, :global(#root) { ...@@ -4,6 +4,9 @@ html, body, :global(#root) {
} }
:global { :global {
.ant-layout-header, .ant-menu-item{
background: #001933 !important
}
.example-enter { .example-enter {
opacity: 0.01; opacity: 0.01;
} }
......
...@@ -178,7 +178,7 @@ export default { ...@@ -178,7 +178,7 @@ export default {
} }
try { try {
const { data } = yield call(checkUserExists, { email: payload.email }); const { data } = yield call(checkUserExists, { email: payload.email, user_id: payload.user_id });
if (data) { if (data) {
yield put({ type: 'check', payload: { isEmailExists: true, checkEmail: 'warning' } }); yield put({ type: 'check', payload: { isEmailExists: true, checkEmail: 'warning' } });
} }
...@@ -193,7 +193,7 @@ export default { ...@@ -193,7 +193,7 @@ export default {
} }
try { try {
const { data } = yield call(checkUserExists, { username: payload.username }); const { data } = yield call(checkUserExists, { username: payload.username, user_id: payload.user_id });
if (data) { if (data) {
yield put({ type: 'check', payload: { isUserNameExists: true, checkUsername: 'warning' } }); yield put({ type: 'check', payload: { isUserNameExists: true, checkUsername: 'warning' } });
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment