l-min-components 1.7.1344 → 1.7.1345

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.7.1344",
3
+ "version": "1.7.1345",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "src/assets",
@@ -143,6 +143,7 @@ const AppMainLayout = ({ children }) => {
143
143
  user,
144
144
  userDetails,
145
145
  } = useHeader({ default: true });
146
+
146
147
  // get current default account and store in cookie (from api);
147
148
  useEffect(() => {
148
149
  if (getDefaultAccount?.data) {
@@ -230,9 +231,9 @@ const AppMainLayout = ({ children }) => {
230
231
  break;
231
232
  }
232
233
  }
233
- handleGetUserPlan();
234
+ defaultAcct && handleGetUserPlan();
234
235
  handleGetDefaultAccount();
235
- }, []);
236
+ }, [defaultAcct]);
236
237
 
237
238
  // setting current environment type
238
239
  useEffect(() => {
@@ -92,15 +92,17 @@ const UserCard = ({ isOpen, findText }) => {
92
92
  if (window.location.pathname.includes("instructor")) {
93
93
  window.location.href = `${window.location.protocol}//${window.location.hostname}/instructor/profile`;
94
94
  }
95
- }}>
95
+ }}
96
+ >
96
97
  <UserName>{findText("Hello")}</UserName>
97
98
  <Handle
98
99
  style={{
99
100
  textTransform: "capitalize",
100
101
  fontWeight: 700,
101
102
  fontSize: 15,
102
- }}>
103
- {accountName}
103
+ }}
104
+ >
105
+ {accountName?.slice(0, 27)?.trim() + "..."}
104
106
  </Handle>
105
107
  </UserDetail>
106
108
  </>