fix redirect logic

This commit is contained in:
Abhinav 2024-01-05 20:39:52 +05:30
parent 3aad1a9803
commit 005c3926bb

View file

@ -224,7 +224,7 @@ export default function Credentials({
}
const redirectURL = InMemoryStore.get(MS_KEYS.REDIRECT_URL);
InMemoryStore.delete(MS_KEYS.REDIRECT_URL);
router.push(APP_HOMES.get(redirectURL ?? appName));
router.push(redirectURL ?? APP_HOMES.get(appName));
} catch (e) {
logError(e, 'useMasterPassword failed');
}