Skip to content

Commit 5065dbf

Browse files
committed
revert client redirect, prod unchanged
1 parent da2cbc8 commit 5065dbf

1 file changed

Lines changed: 2 additions & 10 deletions

File tree

client/modules/User/actions.ts

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,7 @@ export function validateAndLoginUser(formProps: {
9292
})
9393
);
9494
dispatch(justOpenedProject());
95-
const path =
96-
previousPath === '/signup' || previousPath === '/login'
97-
? '/'
98-
: previousPath;
99-
browserHistory.push(path);
95+
browserHistory.push(previousPath);
10096
resolve();
10197
})
10298
.catch((error) =>
@@ -127,11 +123,7 @@ export function validateAndSignUpUser(formValues: CreateUserRequestBody) {
127123
.then((response) => {
128124
dispatch(authenticateUser(response.data));
129125
dispatch(justOpenedProject());
130-
const path =
131-
previousPath === '/signup' || previousPath === '/login'
132-
? '/'
133-
: previousPath;
134-
browserHistory.push(path);
126+
browserHistory.push(previousPath);
135127
resolve();
136128
})
137129
.catch((error) => {

0 commit comments

Comments
 (0)