Przeglądaj źródła

user idGen modify

xy 7 lat temu
rodzic
commit
0867433704
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/components/login/Login.js

+ 1 - 1
src/components/login/Login.js

@@ -127,7 +127,7 @@ class Login extends Component {
                             <Button type='primary' onClick={() => {
                                 request('http://123.206.193.98:3000/graphql', SEARCH_USER, {username: this.state.register_username}).then(data => {
                                     if (data.user_by_props.length === 0) {
-                                        let id = idGen('userID');
+                                        let id = idGen('user');
                                         let _this = this;
                                         create_user({
                                             variables: {