Skip to content

Commit

Permalink
Merge pull request #30 from ymaheshwari1/#1x640rx
Browse files Browse the repository at this point in the history
Replaced: toast to console error statement(#1x640rx)
  • Loading branch information
adityasharma7 committed Dec 23, 2021
2 parents 6c17d8c + 3d3e959 commit f95407a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/store/modules/product/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,13 @@ const actions: ActionTree<ProductState, RootState> = {
// Handled empty response in case of failed query
if (resp.data) commit(types.PRODUCT_ADD_TO_CACHED_MULTIPLE, { products });
} else {
showToast(translate('Something went wrong'))
console.error('Something went wrong')
}
// TODO Handle specific error
return resp;
},

async getProductInformation ({ dispatch }, { orders }) {

let productIds: any = new Set();
orders.forEach((order: any) => {
order.items.forEach((item: any) => {
Expand Down

0 comments on commit f95407a

Please sign in to comment.