We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
As you can see here https://github.com/vuestorefront/vue-storefront/blob/master/core/modules/user/store/actions.ts#L218 payload is the empty string ('').
''
Now look at this line https://github.com/vuestorefront/vue-storefront/blob/master/core/modules/user/store/mutations.ts#L8. It works only because
'someString'.newToken === undefined
Pass payload with correct value eg.
commit(types.USER_TOKEN_CHANGED, { newToken: null })
The text was updated successfully, but these errors were encountered:
Merge pull request #6012 from vuestorefront/#5565/empty-payload-clear…
ba9a23c
…CurrentUser fix: #5565/empty payload clear current user
lukaszjedrasik
No branches or pull requests
Current behavior
As you can see here https://github.com/vuestorefront/vue-storefront/blob/master/core/modules/user/store/actions.ts#L218 payload is the empty string (
''
).Now look at this line https://github.com/vuestorefront/vue-storefront/blob/master/core/modules/user/store/mutations.ts#L8. It works only because
Expected behavior
Pass payload with correct value eg.
Version of Vue Storefront
The text was updated successfully, but these errors were encountered: