Skip to content

Commit

Permalink
fix: theme account url
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianJiang2021 committed Sep 28, 2023
1 parent 02829bd commit f562131
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/hooks/useB3AppOpen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,12 @@ export const useB3AppOpen = (initOpenState: OpenPageState) => {
href = isLogin ? '/orders' : '/login'
}

if (isLogin && href === '/login.php') {
if (
isLogin &&
href.includes('/login') &&
!href.includes('action=create_account') &&
!href.includes('action=logout')
) {
href = '/orders'
}
if (initOpenState?.handleEnterClick) {
Expand Down

0 comments on commit f562131

Please sign in to comment.