fixes hound allerts

This commit is contained in:
zmagod 2017-09-28 17:00:11 +02:00
parent cb4bacc372
commit f492234f89
3 changed files with 5 additions and 3 deletions

View file

@ -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 {

View file

@ -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);

View file

@ -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