Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

redirect to dashboard after login and fix some typo #259

Merged
merged 1 commit into from
Apr 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading