l-min-components 1.0.776 → 1.0.779

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": "l-min-components",
3
- "version": "1.0.776",
3
+ "version": "1.0.779",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "src/assets",
@@ -44,6 +44,8 @@ const SideMenu = ({
44
44
  // Normal route filter
45
45
  const [filteredRoutes, setFilteredRoutes] = useState();
46
46
 
47
+ const isPersonal = generalData?.selectedAccount?.type === "PERSONAL" && window.location.hostname.includes("staging")
48
+
47
49
  useEffect(() => {
48
50
  if (userType) {
49
51
  setFilteredRoutes(
@@ -301,10 +303,7 @@ const SideMenu = ({
301
303
  )}
302
304
  minimal={isOpen}
303
305
  >
304
- {!(
305
- window.location.hostname.includes("personal") &&
306
- window.location.hostname.includes("staging")
307
- ) && (
306
+ {!isPersonal && (
308
307
  <>
309
308
  <IconContainer active={active}>
310
309
  {active ? iconActive : icon}