Skip to content

Commit

Permalink
Improved: toast message for setting updation in case of no product st…
Browse files Browse the repository at this point in the history
…ore found (#412)
  • Loading branch information
amansinghbais committed Nov 5, 2024
1 parent d2aaf0d commit dea1c42
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@
"Timezone": "Timezone",
"Time zone updated successfully": "Time zone updated successfully",
"To close the purchase order, select all.": "To close the purchase order, select all.",
"Unable to update barcode identification preference since no product store config.": "Unable to update barcode identification preference since no product store config.",
"Unable to update force scan preference since no product store config.": "Unable to update force scan preference since no product store config.",
"Unable to update barcode identification preference since no product store config found.": "Unable to update barcode identification preference since no product store config found.",
"Unable to update force scan preference since no product store config found.": "Unable to update force scan preference since no product store config found.",
"Unable to update product identifier preference": "Unable to update product identifier preference",
"Username": "Username",
"Version: ": "Version: {appVersion}",
Expand Down
4 changes: 2 additions & 2 deletions src/store/modules/util/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ const actions: ActionTree<UtilState, RootState> = {

// when selecting none as ecom store, not updating the pref as it's not possible to save pref with empty productStoreId
if(!eComStoreId) {
showToast(translate("Unable to update force scan preference since no product store config."))
showToast(translate("Unable to update force scan preference since no product store config found."))
commit(types.UTIL_FORCE_SCAN_STATUS_UPDATED, prefValue)
return;
}
Expand Down Expand Up @@ -238,7 +238,7 @@ const actions: ActionTree<UtilState, RootState> = {

// when selecting none as ecom store, not updating the pref as it's not possible to save pref with empty productStoreId
if(!eComStoreId) {
showToast(translate("Unable to update barcode identification preference since no product store config."))
showToast(translate("Unable to update barcode identification preference since no product store config found."))
commit(types.UTIL_BARCODE_IDENTIFICATION_PREF_UPDATED, prefValue)
return;
}
Expand Down

0 comments on commit dea1c42

Please sign in to comment.