File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -125,23 +125,17 @@ function create($container, $toggler) {
125125 if ( menuName ) {
126126 menuName . content = (
127127 < div style = { { display : "flex" } } >
128- if (menuName) {
129- menuName . content = (
130- < div style = { { display : "flex" } } >
131- { Boolean ( user . verified ) && (
132- < span className = "icon verified" > </ span >
133- ) }
134- { user . name }
135- { Boolean ( user . acode_pro ) && (
136- < span className = "badge" > Pro</ span >
137- ) }
138- </ div >
139- ) ;
140- }
128+ { Boolean ( user . verified ) && (
129+ < span className = "icon verified" > </ span >
130+ ) }
131+ { user . name }
132+ { Boolean ( user . acode_pro ) && < span className = "badge" > Pro</ span > }
133+ </ div >
134+ ) ;
135+ }
141136
142- if (menuEmail) {
143- menuEmail . textContent = user . email || "" ;
144- }
137+ if ( menuEmail ) {
138+ menuEmail . textContent = user . email || "" ;
145139 }
146140
147141 setTimeout ( ( ) => {
Original file line number Diff line number Diff line change @@ -86,6 +86,9 @@ class AuthService {
8686 console . error ( "Error during logout:" , error ) ;
8787 }
8888
89+ loggedInUser = null ;
90+ localStorage . removeItem ( CACHE_USER_KEY ) ;
91+
8992 try {
9093 await this . #exec( "logout" ) ;
9194 return true ;
You can’t perform that action at this time.
0 commit comments