@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.
@@ -11819,7 +11819,7 @@ function ReturnClient() {
11819
11819
  };
11820
11820
  var paths = splitPath(location.pathname);
11821
11821
  useEffect(function () {
11822
- if (paths[paths.length - 1] === 'order/return') {
11822
+ if (paths[paths.length - 2] === 'order' || paths[paths.length - 2] === 'return') {
11823
11823
  setActionTypeOptions([]);
11824
11824
  setLocationOptions([]);
11825
11825
  setSelectedClient(null);