Fix redirection to maps/

This commit is contained in:
Paulo Gustavo Veiga 2023-01-02 20:50:35 -08:00
parent fb90c876e4
commit 3e9d088a01

View File

@ -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);