Skip to content

Commit

Permalink
Merge pull request #238 from disha1202/#2tky1f3
Browse files Browse the repository at this point in the history
Fixed: error in console due to empty shopify configuration on logout(#2tky1f3)
  • Loading branch information
adityasharma7 authored Sep 9, 2022
2 parents 1f458ed + ee858de commit 113e467
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store/modules/user/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ const actions: ActionTree<UserState, RootState> = {
* update current shopify config id
*/
async setCurrentShopifyConfig({ commit, dispatch }, shopifyConfig) {
commit(types.USER_CURRENT_SHOPIFY_CONFIG_UPDATED, shopifyConfig);
commit(types.USER_CURRENT_SHOPIFY_CONFIG_UPDATED, shopifyConfig ? shopifyConfig : {});
dispatch('job/clearJobState', null, { root: true });
},

Expand Down

0 comments on commit 113e467

Please sign in to comment.