File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ export const UserModule: StorefrontModule = async function ({store}) {
3333 const type = mutation . type
3434
3535 if (
36- type . endsWith ( types . USER_INFO_LOADED ) && state . user . current
36+ type . endsWith ( types . USER_INFO_LOADED )
3737 ) {
3838 StorageManager . get ( 'user' ) . setItem ( 'current-user' , state . user . current ) . catch ( ( reason ) => {
3939 console . error ( reason ) // it doesn't work on SSR
@@ -49,7 +49,7 @@ export const UserModule: StorefrontModule = async function ({store}) {
4949 }
5050
5151 if (
52- type . endsWith ( types . USER_TOKEN_CHANGED ) && state . user . token
52+ type . endsWith ( types . USER_TOKEN_CHANGED )
5353 ) {
5454 StorageManager . get ( 'user' ) . setItem ( 'current-token' , state . user . token ) . catch ( ( reason ) => {
5555 console . error ( reason ) // it doesn't work on SSR
You can’t perform that action at this time.
0 commit comments