Skip to content

Commit

Permalink
Implemented: return rejected promise if ecomStoreId is not provided
Browse files Browse the repository at this point in the history
  • Loading branch information
sanskar345 committed Aug 22, 2023
1 parent bdee9f5 commit 366c180
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store/productIdentification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const useProductIdentificationStore = defineStore('productIdentification'
// When eComStoreId is not available then make the values change to what selected previously
if(!eComStoreId) {
this.productIdentificationPref = productIdentificationPref
return Promise.resolve(this.productIdentificationPref);
return Promise.reject(this.productIdentificationPref);
}

productIdentificationPref[id] = value
Expand Down

0 comments on commit 366c180

Please sign in to comment.