Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Show upgrade screen when unlocking inline (#957)

Leendert de Borst8510648b5f28
diff --git a/apps/browser-extension/src/entrypoints/popup/pages/Reinitialize.tsx b/apps/browser-extension/src/entrypoints/popup/pages/Reinitialize.tsx
index 59ad97245..f3e02aeda 100644
--- a/apps/browser-extension/src/entrypoints/popup/pages/Reinitialize.tsx
+++ b/apps/browser-extension/src/entrypoints/popup/pages/Reinitialize.tsx
@@ -100,9 +100,6 @@ const Reinitialize: React.FC = () => {
} else if (!dbAvailable) {
navigate('/unlock', { replace: true });
}
- } else if (inlineUnlock) {
- setIsInitialLoading(false);
- navigate('/unlock-success', { replace: true });
} else if (shouldRunSync) {
// Only perform vault sync once during initialization
hasInitialized.current = true;
@@ -115,8 +112,13 @@ const Reinitialize: React.FC = () => {
*/
onSuccess: async () => {
// After successful sync, try to restore last page or go to credentials
- await restoreLastPage();
- setIsInitialLoading(false);
+ if (inlineUnlock) {
+ setIsInitialLoading(false);
+ navigate('/unlock-success', { replace: true });
+ } else {
+ await restoreLastPage();
+ setIsInitialLoading(false);
+ }
},
/**
* Handle vault sync error.