Fix optional error when checking job

This commit is contained in:
Justin Edmund 2022-12-30 07:00:41 -08:00
parent 59bc9e6b89
commit 2348c049d6

View file

@ -41,7 +41,7 @@ const JobDropdown = React.forwardRef<HTMLSelectElement, Props>(
// Set current job from state on mount
useEffect(() => {
if (party.job.id !== '-1') {
if (party.job?.id !== '-1') {
setCurrentJob(party.job)
}
}, [])