diff --git a/src/roles/user/dashboard/views/Dashboard.jsx b/src/roles/user/dashboard/views/Dashboard.jsx index 2b020ce..93b8e05 100644 --- a/src/roles/user/dashboard/views/Dashboard.jsx +++ b/src/roles/user/dashboard/views/Dashboard.jsx @@ -8,7 +8,15 @@ import useDashboards from '../hooks/useDashboards'; import { slugify } from '../../../../utils/Constant'; import Skeleton from 'react-loading-skeleton'; +function validName(fullName) { + const nameArray = fullName.split(" "); + const firstTwoWords = nameArray.slice(0, 2).join(" "); + + return firstTwoWords; +} + const Dashboard = () => { + const { username } = JSON.parse(localStorage.getItem('userData')); const { journey, loading, error, thumbPath} = useDashboards(); const noData = () =>{ return journey.lenght > 0 ? false : true }; @@ -19,7 +27,7 @@ const Dashboard = () => { return (
Let’s evolve together with adaptive learning tailored just for you.