|
|
@ -36,14 +36,14 @@ export const useRecoveryProgressEffect = (props: UseRecoveryProgressEffectProps)
|
|
|
|
dispatch(setProgress(progress + 1));
|
|
|
|
dispatch(setProgress(progress + 1));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
window.log.debug(
|
|
|
|
window.log.debug(
|
|
|
|
`WIP: [continueYourSession] AccountRestoration.Loading Loading progress ${progress}%`
|
|
|
|
`WIP: [useRecoveryProgressEffect] AccountRestoration.Loading Loading progress ${progress}%`
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
if (progress >= 100) {
|
|
|
|
if (progress >= 100) {
|
|
|
|
clearInterval(interval);
|
|
|
|
clearInterval(interval);
|
|
|
|
// if we didn't get the display name in time, we need to enter it manually
|
|
|
|
// if we didn't get the display name in time, we need to enter it manually
|
|
|
|
window.log.debug(
|
|
|
|
window.log.debug(
|
|
|
|
`WIP: [continueYourSession] AccountRestoration.Loading We didn't get the display name in time, so we need to enter it manually`
|
|
|
|
`WIP: [useRecoveryProgressEffect] AccountRestoration.Loading We didn't get the display name in time, so we need to enter it manually`
|
|
|
|
);
|
|
|
|
);
|
|
|
|
dispatch(setAccountRestorationStep(AccountRestoration.DisplayName));
|
|
|
|
dispatch(setAccountRestorationStep(AccountRestoration.DisplayName));
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -56,7 +56,7 @@ export const useRecoveryProgressEffect = (props: UseRecoveryProgressEffectProps)
|
|
|
|
dispatch(setProgress(progress + 1));
|
|
|
|
dispatch(setProgress(progress + 1));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
window.log.debug(
|
|
|
|
window.log.debug(
|
|
|
|
`WIP: [continueYourSession] AccountRestoration. Finishing progress ${progress}%`
|
|
|
|
`WIP: [useRecoveryProgressEffect] AccountRestoration. Finishing progress ${progress}%`
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
if (progress >= 100) {
|
|
|
|
if (progress >= 100) {
|
|
|
@ -71,13 +71,13 @@ export const useRecoveryProgressEffect = (props: UseRecoveryProgressEffectProps)
|
|
|
|
clearInterval(interval);
|
|
|
|
clearInterval(interval);
|
|
|
|
if (!isEmpty(displayName)) {
|
|
|
|
if (!isEmpty(displayName)) {
|
|
|
|
window.log.debug(
|
|
|
|
window.log.debug(
|
|
|
|
`WIP: [continueYourSession] AccountRestoration.Complete Finished progress`
|
|
|
|
`WIP: [useRecoveryProgressEffect] AccountRestoration.Complete Finished progress`
|
|
|
|
);
|
|
|
|
);
|
|
|
|
dispatch(setAccountRestorationStep(AccountRestoration.Complete));
|
|
|
|
dispatch(setAccountRestorationStep(AccountRestoration.Complete));
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
dispatch(setAccountRestorationStep(AccountRestoration.DisplayName));
|
|
|
|
dispatch(setAccountRestorationStep(AccountRestoration.DisplayName));
|
|
|
|
window.log.debug(
|
|
|
|
window.log.debug(
|
|
|
|
`WIP: [continueYourSession] AccountRestoration.DisplayName failed to fetch display name so we need to enter it manually`
|
|
|
|
`WIP: [useRecoveryProgressEffect] AccountRestoration.DisplayName failed to fetch display name so we need to enter it manually`
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}, ONBOARDING_TIMES.RECOVERY_FINISHED);
|
|
|
|
}, ONBOARDING_TIMES.RECOVERY_FINISHED);
|
|
|
@ -87,7 +87,7 @@ export const useRecoveryProgressEffect = (props: UseRecoveryProgressEffectProps)
|
|
|
|
clearInterval(interval);
|
|
|
|
clearInterval(interval);
|
|
|
|
if (!isEmpty(displayName)) {
|
|
|
|
if (!isEmpty(displayName)) {
|
|
|
|
window.log.debug(
|
|
|
|
window.log.debug(
|
|
|
|
`WIP: [continueYourSession] AccountRestoration.Complete opening inbox for ${displayName}`
|
|
|
|
`WIP: [useRecoveryProgressEffect] AccountRestoration.Complete opening inbox for ${displayName}`
|
|
|
|
);
|
|
|
|
);
|
|
|
|
trigger('openInbox');
|
|
|
|
trigger('openInbox');
|
|
|
|
}
|
|
|
|
}
|
|
|
|