Skip to content

Commit

Permalink
Merge pull request #2059 from Koniverse/koni/dev/issue-2051
Browse files Browse the repository at this point in the history
[Issue-2051] Handles the case of accessing specific features via URL
  • Loading branch information
saltict authored Oct 24, 2023
2 parents f266c48 + d629e4e commit 73427c2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/extension-koni-ui/src/Popup/Root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,14 @@ function DefaultRoute ({ children }: { children: React.ReactNode }): React.React
}
} else if (pathName === loginUrl && !needUnlock) {
redirectTarget = DEFAULT_ROUTER_PATH;
} else if (pathName === welcomeUrl && !noAccount) {
redirectTarget = DEFAULT_ROUTER_PATH;
} else if (pathName === migratePasswordUrl && !needMigrate) {
if (noAccount) {
redirectTarget = welcomeUrl;
} else {
redirectTarget = DEFAULT_ROUTER_PATH;
}
} else if (hasInternalConfirmations) {
openPModal('confirmations');
} else if (!hasInternalConfirmations && isOpenPModal('confirmations')) {
Expand Down

1 comment on commit 73427c2

@saltict
Copy link
Author

Choose a reason for hiding this comment

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

Please sign in to comment.