Skip to content
This repository was archived by the owner on Mar 2, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/ui/views/Dashboard/wallet-tab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const WalletTab = ({ network }) => {
flexDirection: 'column',
backgroundColor: 'black',
width: '100%',
height: '100%',
height: 'auto',
}}
>
<Tabs
Expand Down
10 changes: 8 additions & 2 deletions src/ui/views/SortHat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const SortHat = () => {
let approval = await getApproval();
if (!wallet) {
setTo('/unlock');
return;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The early return after setTo('/unlock') could lead to skipping important initialization logic. Consider whether any cleanup or state updates need to be performed before returning.

}

if (isInNotification && !approval) {
Expand All @@ -35,8 +36,13 @@ const SortHat = () => {
approval = undefined;
}

if (!(await wallet.isBooted()) && !isInTab) {
openInternalPageInTab('welcome');
// For fresh installation, go to welcome page regardless of popup/tab mode
if (!(await wallet.isBooted())) {
if (isInTab) {
setTo('/welcome');
} else {
openInternalPageInTab('welcome');
}
return;
}

Expand Down
Loading