File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ) => {
You can’t perform that action at this time.
0 commit comments