@asaleh37/ui-base 25.8.10-8 → 25.8.10-9

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asaleh37/ui-base",
3
- "version": "25.8.10-8",
3
+ "version": "25.8.10-9",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "Ahmed Saleh Mohamed",
@@ -57,6 +57,19 @@ const useAxios = () => {
57
57
  toast.error("your session is now expired, you need to login again", {
58
58
  autoClose: false,
59
59
  });
60
+ } else if (
61
+ error
62
+ ? error.response
63
+ ? error.response.status
64
+ ? error.response.status === 402
65
+ : false
66
+ : false
67
+ : false
68
+ ) {
69
+ dispatch(UserSessionActions.setUnAuthenticated());
70
+ toast.error(
71
+ "Your license is missing or has expired,Please reach out to your vendor for assistance."
72
+ );
60
73
  } else if (
61
74
  error
62
75
  ? error.response