@@ -406,30 +406,32 @@ const JobPage = (): ReactElement => {
406406 } ) ;
407407 } }
408408 />
409- < div className = "flex items-center" >
410- < SourceAvatar
411- source = { {
412- image : opportunity . organization . image ,
413- handle : opportunity . organization . name ,
414- } }
415- size = { ProfileImageSize . Medium }
416- />
409+ { ! ! opportunity . organization && (
410+ < div className = "flex items-center" >
411+ < SourceAvatar
412+ source = { {
413+ image : opportunity . organization . image ,
414+ handle : opportunity . organization . name ,
415+ } }
416+ size = { ProfileImageSize . Medium }
417+ />
417418
418- < Typography
419- bold
420- type = { TypographyType . Callout }
421- color = { TypographyColor . Primary }
422- >
423- { opportunity . organization . name } { ' ' }
424419 < Typography
425- tag = { TypographyTag . Span }
426- color = { TypographyColor . Tertiary }
427- className = "font-normal"
420+ bold
421+ type = { TypographyType . Callout }
422+ color = { TypographyColor . Primary }
428423 >
429- Verified job
424+ { opportunity . organization . name } { ' ' }
425+ < Typography
426+ tag = { TypographyTag . Span }
427+ color = { TypographyColor . Tertiary }
428+ className = "font-normal"
429+ >
430+ Verified job
431+ </ Typography >
430432 </ Typography >
431- </ Typography >
432- </ div >
433+ </ div >
434+ ) }
433435 { /* Recruiter */ }
434436 { ! ! opportunity . recruiters ?. [ 0 ] && (
435437 < div className = "flex items-center gap-2" >
@@ -704,7 +706,7 @@ const JobPage = (): ReactElement => {
704706 } }
705707 />
706708
707- { opportunity . organization . website && (
709+ { ! ! opportunity . organization ? .website && (
708710 < Link href = { opportunity . organization . website } passHref >
709711 < Button
710712 tag = "a"
@@ -721,34 +723,36 @@ const JobPage = (): ReactElement => {
721723 ) }
722724 </ div >
723725 { /* Company information */ }
724- < div className = "flex px-4" >
725- < SourceAvatar
726- source = { {
727- image : opportunity . organization . image ,
728- handle : opportunity . organization . name ,
729- } }
730- size = { ProfileImageSize . Large }
731- />
726+ { ! ! opportunity . organization && (
727+ < div className = "flex px-4" >
728+ < SourceAvatar
729+ source = { {
730+ image : opportunity . organization . image ,
731+ handle : opportunity . organization . name ,
732+ } }
733+ size = { ProfileImageSize . Large }
734+ />
732735
733- < div className = "flex flex-shrink flex-col flex-wrap" >
734- < Typography
735- type = { TypographyType . Body }
736- color = { TypographyColor . Primary }
737- >
738- { opportunity . organization . name }
739- </ Typography >
740- < Typography
741- type = { TypographyType . Footnote }
742- color = { TypographyColor . Tertiary }
743- >
744- { companyStageMap [ opportunity . organization . stage ] } •{ ' ' }
745- { opportunity . organization . category }
746- </ Typography >
736+ < div className = "flex flex-shrink flex-col flex-wrap" >
737+ < Typography
738+ type = { TypographyType . Body }
739+ color = { TypographyColor . Primary }
740+ >
741+ { opportunity . organization . name }
742+ </ Typography >
743+ < Typography
744+ type = { TypographyType . Footnote }
745+ color = { TypographyColor . Tertiary }
746+ >
747+ { companyStageMap [ opportunity . organization . stage ] } •{ ' ' }
748+ { opportunity . organization . category }
749+ </ Typography >
750+ </ div >
747751 </ div >
748- </ div >
752+ ) }
749753
750754 { /* SoMe Links */ }
751- { opportunity . organization . socialLinks ?. length > 0 && (
755+ { opportunity . organization ? .socialLinks ?. length > 0 && (
752756 < div className = "flex gap-2 px-4" >
753757 { opportunity . organization . socialLinks . map (
754758 ( { link, socialType } ) => (
@@ -786,7 +790,7 @@ const JobPage = (): ReactElement => {
786790 Founded
787791 </ Typography >
788792 < Typography type = { TypographyType . Footnote } bold >
789- { opportunity . organization . founded }
793+ { opportunity . organization ? .founded || 'N/A' }
790794 </ Typography >
791795
792796 < Typography
@@ -796,7 +800,7 @@ const JobPage = (): ReactElement => {
796800 HQ
797801 </ Typography >
798802 < Typography type = { TypographyType . Footnote } bold >
799- { opportunity . organization . location }
803+ { opportunity . organization ? .location || 'N/A' }
800804 </ Typography >
801805
802806 < Typography
@@ -806,13 +810,13 @@ const JobPage = (): ReactElement => {
806810 Employees
807811 </ Typography >
808812 < Typography type = { TypographyType . Footnote } bold >
809- { companySizeMap [ opportunity . organization . size ] }
813+ { companySizeMap [ opportunity . organization ? .size ] || 'N/A' }
810814 </ Typography >
811815 </ div >
812816 </ SimpleTooltip >
813817
814818 { /* Description */ }
815- { opportunity . organization . description && (
819+ { ! ! opportunity . organization ? .description && (
816820 < SimpleTooltip
817821 content = {
818822 canEdit ? labels . opportunity . companyInfoEditNotice : undefined
@@ -830,7 +834,7 @@ const JobPage = (): ReactElement => {
830834 ) }
831835
832836 { /* Perks & Benefits */ }
833- { opportunity . organization . perks && (
837+ { opportunity . organization ? .perks ?. length > 0 && (
834838 < div className = "flex flex-col gap-2 px-4" >
835839 < Typography bold type = { TypographyType . Callout } >
836840 Perks & Benefits
0 commit comments