From b36dcb7b6f6f9f7f22995e81db373ac36d2a31de Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Tue, 31 Jan 2023 17:59:57 -0800 Subject: [PATCH] Fix optional error --- components/JobSection/index.tsx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/components/JobSection/index.tsx b/components/JobSection/index.tsx index f88a4016..e9323597 100644 --- a/components/JobSection/index.tsx +++ b/components/JobSection/index.tsx @@ -197,10 +197,14 @@ const JobSection = (props: Props) => { /> ) : (
- {party.job.name[locale]} + {party.job ? ( + {party.job.name[locale]} + ) : ( + '' + )}

{party.job ? party.job.name[locale] : t('no_job')}

)}