@@ -8,7 +8,7 @@ const SESSION_PREFIX = `${LOCALSTORAGE_GLOBAL_PREFIX}session.`;
88const keys = {
99 darkMode : `${ SESSION_PREFIX } darkMode` ,
1010 sessionId : `${ SESSION_PREFIX } sessionId` ,
11- userName : `${ SESSION_PREFIX } userName ` ,
11+ name : `${ SESSION_PREFIX } name ` ,
1212} ;
1313
1414const session : Module < SessionState , StoreState > = {
@@ -17,9 +17,9 @@ const session: Module<SessionState, StoreState> = {
1717 state . settings . darkMode = payload ;
1818 localStorage . setItem ( keys . darkMode , payload . toString ( ) ) ;
1919 } ,
20- "session.settings.userName " ( state , payload : string ) {
21- state . userName = payload ;
22- localStorage . setItem ( keys . userName , payload ) ;
20+ "session.settings.name " ( state , payload : string ) {
21+ state . name = payload ;
22+ localStorage . setItem ( keys . name , payload ) ;
2323 } ,
2424 } ,
2525 state ( ) {
@@ -32,7 +32,7 @@ const session: Module<SessionState, StoreState> = {
3232
3333 return {
3434 id : sessionId ,
35- userName : localStorage . getItem ( keys . userName ) ?? "User" ,
35+ name : localStorage . getItem ( keys . name ) ?? "User" ,
3636 settings : {
3737 darkMode : JSON . parse ( localStorage . getItem ( keys . darkMode ) ?? "false" ) ,
3838 } ,
0 commit comments