mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-11 01:43:23 +01:00
Fix redirection to maps/
This commit is contained in:
parent
fb90c876e4
commit
3e9d088a01
@ -42,7 +42,7 @@ const RegistrationCallbackPage = (): React.ReactElement => {
|
|||||||
.then((result) => {
|
.then((result) => {
|
||||||
if (result.googleSync) {
|
if (result.googleSync) {
|
||||||
// if service reports that user already has sync accounts, go to maps page
|
// if service reports that user already has sync accounts, go to maps page
|
||||||
navigate('/c/maps');
|
navigate('/c/maps/');
|
||||||
}
|
}
|
||||||
setCallbackResult(result);
|
setCallbackResult(result);
|
||||||
})
|
})
|
||||||
@ -57,7 +57,7 @@ const RegistrationCallbackPage = (): React.ReactElement => {
|
|||||||
client
|
client
|
||||||
.confirmAccountSync(callbackResult.email, callbackResult.syncCode)
|
.confirmAccountSync(callbackResult.email, callbackResult.syncCode)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
navigate('/c/maps');
|
navigate('/c/maps/');
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
console.log('ERROR', error);
|
console.log('ERROR', error);
|
||||||
|
Loading…
Reference in New Issue
Block a user