From 2d7df764dbfa2b1cea945b8864e8058307dda1ff Mon Sep 17 00:00:00 2001 From: Paribesh Nepal Date: Sat, 19 Oct 2024 22:52:30 +0530 Subject: [PATCH] fix:fixed minor bug --- src/components/ShareJobDialog.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/ShareJobDialog.tsx b/src/components/ShareJobDialog.tsx index e718a5af..87bf9a46 100644 --- a/src/components/ShareJobDialog.tsx +++ b/src/components/ShareJobDialog.tsx @@ -22,7 +22,7 @@ const shareOptions: ShareOption[] = [ icon: , shareFunction: (job: JobType) => { const text = encodeURIComponent( - `Check out this job posting: ${job.title} at ${job.companyName}` + `Check out this job posting: ${job.title} at ${job.company?.name}` ); const url = encodeURIComponent(window.location.href); window.open( @@ -38,7 +38,7 @@ const shareOptions: ShareOption[] = [ const url = encodeURIComponent(window.location.href); const title = encodeURIComponent(job.title); const summary = encodeURIComponent( - `Exciting opportunity: ${job.title} at ${job.companyName}. Check out the details!` + `Exciting opportunity: ${job.title} at ${job.company?.name}. Check out the details!` ); window.open( `https://www.linkedin.com/sharing/share-offsite/?url=${url}&title=${title}&summary=${summary}`, @@ -51,7 +51,7 @@ const shareOptions: ShareOption[] = [ icon: , // Using Share2 as a placeholder, replace with WhatsApp icon if available shareFunction: (job: JobType) => { const text = encodeURIComponent( - `Check out this job posting: ${job.title} at ${job.companyName} - ${window.location.href}` + `Check out this job posting: ${job.title} at ${job.company?.name} - ${window.location.href}` ); window.open(`https://wa.me/?text=${text}`, '_blank'); },