mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-09-20 23:16:15 +08:00
fixes hound allerts
This commit is contained in:
parent
cb4bacc372
commit
f492234f89
|
@ -1,6 +1,5 @@
|
|||
import React, { Component } from "react";
|
||||
import { string, func } from "prop-types";
|
||||
import _ from "lodash";
|
||||
import styled from "styled-components";
|
||||
import { FormattedMessage } from "react-intl";
|
||||
import {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import React, { Component } from "react";
|
||||
import { func } from "prop-types";
|
||||
import { connect } from "react-redux";
|
||||
import { func } from "prop-types";
|
||||
import styled from "styled-components";
|
||||
import { FormattedMessage } from "react-intl";
|
||||
import { getUserProfileInfo } from "../../../../../services/api/users_api";
|
||||
|
@ -99,4 +99,8 @@ class MyProfile extends Component {
|
|||
}
|
||||
}
|
||||
|
||||
MyProfile.propTypes = {
|
||||
addCurrentUser: func.isRequired
|
||||
};
|
||||
|
||||
export default connect(null, { addCurrentUser })(MyProfile);
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
module ClientApi
|
||||
class UserService < BaseService
|
||||
|
||||
def update_user!
|
||||
error = I18n.t('client_api.user.passwords_dont_match')
|
||||
raise CustomUserError, error unless check_password_confirmation
|
||||
|
|
Loading…
Reference in a new issue