From 5710c09731b5fa1fa0f80d23fbba4d3923dd5588 Mon Sep 17 00:00:00 2001 From: Vishal Saranathan Date: Mon, 18 Sep 2023 12:43:01 -0400 Subject: [PATCH] Small bug fixes --- frontend/src/components/Home/Experience.jsx | 2 +- frontend/src/components/Home/Gallery.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/Home/Experience.jsx b/frontend/src/components/Home/Experience.jsx index 50453a2..9146f1a 100644 --- a/frontend/src/components/Home/Experience.jsx +++ b/frontend/src/components/Home/Experience.jsx @@ -124,7 +124,7 @@ function ExperienceMobile() { company={currentExperience().company} type={currentExperience().job_type} location={currentExperience().location} - duration={currentExperience().start_date + " (" + Math.floor(new Date(currentExperience().end_date) - new Date(currentExperience().start_date) / (1000 * 60 * 60 * 24 * 30))} + duration= {buildDuration(currentExperience().start_date, currentExperience().end_date)} logo={currentExperience().logo} desc={currentExperience().desc} tech={currentExperience().tech} diff --git a/frontend/src/components/Home/Gallery.jsx b/frontend/src/components/Home/Gallery.jsx index 3a0f25b..4b78c31 100644 --- a/frontend/src/components/Home/Gallery.jsx +++ b/frontend/src/components/Home/Gallery.jsx @@ -27,7 +27,7 @@ function GalleryMobile() {
Do check out my page{" "} _vishal_here_