fix(login): remove the redirect to CREATE_IDENTITY in Navbar

This redirect is triggered when identities changes during the login process and interrupt it. Identity redirect is already checked inside the login process.

Related to #1806
This commit is contained in:
Massedil
2025-06-28 18:35:47 +02:00
parent 7f849d116b
commit 992d00f067
2 changed files with 0 additions and 20 deletions

View File

@@ -334,21 +334,6 @@ watch(currentActor, async (currentActorValue, previousActorValue) => {
onMounted(() => {});
watch(identities, () => {
// If we don't have any identities, the user has validated their account,
// is logging for the first time but didn't create an identity somehow
if (identities.value && identities.value.length === 0) {
console.warn(
"We have no identities listed for current user",
identities.value
);
console.info("Pushing route to CREATE_IDENTITY");
router.push({
name: RouteName.CREATE_IDENTITY,
});
}
});
const { onDone, mutate: setIdentity } = useMutation<{
changeDefaultActor: { id: string; defaultActor: { id: string } };
}>(UPDATE_DEFAULT_ACTOR);