File tree Expand file tree Collapse file tree 4 files changed +57
-621
lines changed Expand file tree Collapse file tree 4 files changed +57
-621
lines changed Original file line number Diff line number Diff line change @@ -14,14 +14,10 @@ export function middleware(request: NextRequest) {
1414 return NextResponse . next ( ) ;
1515 }
1616
17- if ( pathname === '/' ) {
17+ if ( pathname === '/' || pathname === '/mint-authority' ) {
1818 return NextResponse . redirect ( new URL ( '/connected-wallet' , request . url ) ) ;
1919 }
2020
21- if ( pathname === '/mint-authority' ) {
22- return NextResponse . next ( ) ;
23- }
24-
2521 const segments = pathname . split ( '/' ) . filter ( Boolean ) ;
2622 if ( segments . length > 0 && allowedUserRoutes . has ( segments [ 0 ] ) ) {
2723 return NextResponse . next ( ) ;
Original file line number Diff line number Diff line change @@ -32,12 +32,12 @@ export default function ProfileSwitcher() {
3232 const demoContext = React . useContext ( DemoEnvironmentContext ) ;
3333
3434 const getRouteForUser = React . useCallback ( ( user : UserName ) => {
35- if ( user === 'Mint Authority' ) {
36- return '/mint-authority' ;
37- }
3835 if ( user === 'Not Connected' ) {
3936 return '/connected-wallet' ;
4037 }
38+ if ( user === 'Mint Authority' ) {
39+ return '/connected-wallet' ;
40+ }
4141 return `/${ user . toLowerCase ( ) . replace ( / \s + / g, '-' ) } ` ;
4242 } , [ ] ) ;
4343
You can’t perform that action at this time.
0 commit comments