Skip to content

Commit

Permalink
Update Login.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
dobri1408 authored Oct 11, 2024
1 parent 3efac9e commit eee9510
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/volto/src/components/theme/Login/Login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const Login = (props) => {
const loading = useSelector((state) => state.userSession.login.loading);
const returnUrl =
qs.parse(props.location?.search ?? location.search).return_url ||
location.pathname.replace(/\/[^\/]*\/?$/, '') || '/';
location.pathname.replace(/\/[^/]*\/?$/, '') || '/';

Check failure on line 83 in packages/volto/src/components/theme/Login/Login.jsx

View workflow job for this annotation

GitHub Actions / ESlint

Insert `⏎···`

const previousToken = usePrevious(token);

Expand Down

0 comments on commit eee9510

Please sign in to comment.