diff --git a/components/JobSection/index.tsx b/components/JobSection/index.tsx
index 8411cfbb..0715cf63 100644
--- a/components/JobSection/index.tsx
+++ b/components/JobSection/index.tsx
@@ -127,6 +127,26 @@ const JobSection = (props: Props) => {
props.saveSkill(skill, position)
}
+ const emptyJobLabel = (
+
+
{t('no_job')}
+
+ )
+
+ const filledJobLabel = (
+
+
![{job?.name[locale]}]({`/images/job-icons/${job?.granblue_id}.png`})
+
{job?.name[locale]}
+
+ )
+
+ function jobLabel() {
+ return job ? filledJobLabel : emptyJobLabel
+ }
+
// Render: JSX components
return (
@@ -146,13 +166,7 @@ const JobSection = (props: Props) => {
ref={selectRef}
/>
) : (
-
-
![{party.job.name[locale]}]({`/images/job-icons/${party.job.granblue_id}.png`})
-
{party.job ? party.job.name[locale] : t('no_job')}
-
+ jobLabel()
)}
diff --git a/components/SelectItem/index.tsx b/components/SelectItem/index.tsx
index 12ee6cff..d9964606 100644
--- a/components/SelectItem/index.tsx
+++ b/components/SelectItem/index.tsx
@@ -11,7 +11,7 @@ interface Props extends ComponentProps<'div'> {
}
const SelectItem = React.forwardRef(function selectItem(
- { children, ...props },
+ { children, value, iconSrc, altText, ...props },
forwardedRef
) {
return (
@@ -19,9 +19,9 @@ const SelectItem = React.forwardRef(function selectItem(
className={classNames('SelectItem', props.className)}
{...props}
ref={forwardedRef}
- value={`${props.value}`}
+ value={`${value}`}
>
- {props.iconSrc ?
: ''}
+ {iconSrc ?
: ''}
{children}
)