diff --git a/front_end/src/components/onboarding/steps/step_5.tsx b/front_end/src/components/onboarding/steps/step_5.tsx index db623e3760..577eb4e048 100644 --- a/front_end/src/components/onboarding/steps/step_5.tsx +++ b/front_end/src/components/onboarding/steps/step_5.tsx @@ -160,7 +160,7 @@ const Step5: React.FC = ({ false ); - if (!!response && !response.errors) { + if (!response?.errors) { updateForecastedPostState(post.id, { isSubmitted: true }); } } finally {