@bjsdistribution/dms-client-return 0.0.50 → 0.0.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11827,7 +11827,7 @@ function ReturnClient() {
11827
11827
  };
11828
11828
  var paths = splitPath(location.pathname);
11829
11829
  React.useEffect(function () {
11830
- if (paths[paths.length - 1] === 'order/return') {
11830
+ if (paths[paths.length - 2] === 'order' || paths[paths.length - 2] === 'return') {
11831
11831
  setActionTypeOptions([]);
11832
11832
  setLocationOptions([]);
11833
11833
  setSelectedClient(null);