Skip to content

Commit

Permalink
redirect to dashboard after login and fix some typo
Browse files Browse the repository at this point in the history
  • Loading branch information
root authored and root committed Mar 28, 2024
1 parent 94bd3af commit 422de01
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion backend/routes/error/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const handleError = (err, req, res, next) => {
if (!description) {
console.log('Error:', err)
return res.status(404).json({
description: 'unknow error',
description: 'unknown error',
})
}
console.log('Error:', description)
Expand Down
2 changes: 1 addition & 1 deletion client/src/views/out/login/Login.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const LoginFormTemplate = {

const Login = () => {
const { search } = useLocation()
const redirectURL = new URLSearchParams(search).get('pathFrom') || '/home'
const redirectURL = new URLSearchParams(search).get('pathFrom') || '/dashboard'

const dispatch = useDispatch()
const { isLogin } = useSelector(selectLogin)
Expand Down
2 changes: 1 addition & 1 deletion doc/contribution.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ git commit -m {commit message}

## Step 6 Push

After you finished tour work, push this branch to origin.
After you finished your work, push this branch to origin.
Please do not use git pull, since it may create redundant commits.

```
Expand Down

0 comments on commit 422de01

Please sign in to comment.