Skip to content

Commit

Permalink
Merge pull request #453 from BinaryStudioAcademy/fix/issues-count
Browse files Browse the repository at this point in the history
Fix/default-avatar
  • Loading branch information
PashaNaumencko authored Sep 13, 2019
2 parents c236ca6 + 63dcbc8 commit 1cd0a70
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
3 changes: 3 additions & 0 deletions client/src/components/IssueComments/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,9 @@ IssueComments.propTypes = {
repositoryId: PropTypes.string.isRequired,
userImg: PropTypes.string,
userName: PropTypes.string.isRequired,
owner: PropTypes.string.isRequired,
reponame: PropTypes.string.isRequired,
fetchCurrentRepo: PropTypes.func.isRequired,
history: PropTypes.shape({
push: PropTypes.func.isRequired
}).isRequired
Expand Down
3 changes: 2 additions & 1 deletion client/src/scenes/Signup/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ class Signup extends React.Component {
const user = {
username,
email,
password
password,
imgUrl: 'https://avatars1.githubusercontent.com/u/43038168?s=60&v=4'
};
this.props.signupRoutine({
user
Expand Down
6 changes: 5 additions & 1 deletion server/api/routes/auth.route.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ router.post('/google/mobile', (req, res, next) => {
});

router.post('/register', registrationMiddleware, (req, res, next) => {
register(req.user)
const { imgUrl } = req.body;
register({
...req.user,
imgUrl
})
.then(data => res.send(data))
.catch(next);
});
Expand Down

0 comments on commit 1cd0a70

Please sign in to comment.