diff --git a/components/JobSection/index.tsx b/components/JobSection/index.tsx index bff3d818..787e9add 100644 --- a/components/JobSection/index.tsx +++ b/components/JobSection/index.tsx @@ -8,9 +8,7 @@ import { appState } from '~utils/appState' import './index.scss' // Props -interface Props { - currentJob?: string -} +interface Props {} const JobSection = (props: Props) => { const [job, setJob] = useState() @@ -28,8 +26,7 @@ const JobSection = (props: Props) => { }) useEffect(() => { - if (job) - appState.party.job = job + if (job) appState.party.job = job }, [job]) function receiveJob(job?: Job) { @@ -57,7 +54,7 @@ const JobSection = (props: Props) => {