Skip to content
This repository has been archived by the owner on Sep 3, 2024. It is now read-only.

Commit

Permalink
Fix lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
domdomegg committed May 27, 2024
1 parent 03429d3 commit b8de9ad
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions web/src/pages/PostalVoteForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@ const PostalVoteForm = () => {
setPdf(content.pdf);
navigate('/postal-vote-form/manual');
} else {
// eslint-disable-next-line no-alert
alert(`Error: status ${submitResponse.status} from API, with body: ${JSON.stringify(content)}.`);
// eslint-disable-next-line no-console
console.error(submitResponse);
}
};
Expand Down Expand Up @@ -397,6 +399,7 @@ const PostalVoteFormPage2 = ({ form }: { form: UseFormReturn<TFieldValues> }) =>
// By this point we should have a first name
// If we don't, it probably means we jumped into the middle of the flow
if (form.watch('firstName') === undefined) {
// eslint-disable-next-line no-console
console.error('User appears to have started mid-flow... redirecting to earlier in flow');
navigate('/postal-vote-form/your-details');
}
Expand Down Expand Up @@ -477,6 +480,7 @@ const Manual = ({ pdf, postcode }: { pdf: string, postcode: string }) => {
// By this point we should have a pdf and postcode
// If we don't, it probably means we jumped into the middle of the flow
if (!pdf || !postcode) {
// eslint-disable-next-line no-console
console.error('User appears to have started mid-flow... redirecting to earlier in flow');
navigate('/postal-vote-form/your-details');
}
Expand Down

0 comments on commit b8de9ad

Please sign in to comment.