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

Commit b8de9ad

Browse files
committed
Fix lint warnings
1 parent 03429d3 commit b8de9ad

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

web/src/pages/PostalVoteForm.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,9 @@ const PostalVoteForm = () => {
106106
setPdf(content.pdf);
107107
navigate('/postal-vote-form/manual');
108108
} else {
109+
// eslint-disable-next-line no-alert
109110
alert(`Error: status ${submitResponse.status} from API, with body: ${JSON.stringify(content)}.`);
111+
// eslint-disable-next-line no-console
110112
console.error(submitResponse);
111113
}
112114
};
@@ -397,6 +399,7 @@ const PostalVoteFormPage2 = ({ form }: { form: UseFormReturn<TFieldValues> }) =>
397399
// By this point we should have a first name
398400
// If we don't, it probably means we jumped into the middle of the flow
399401
if (form.watch('firstName') === undefined) {
402+
// eslint-disable-next-line no-console
400403
console.error('User appears to have started mid-flow... redirecting to earlier in flow');
401404
navigate('/postal-vote-form/your-details');
402405
}
@@ -477,6 +480,7 @@ const Manual = ({ pdf, postcode }: { pdf: string, postcode: string }) => {
477480
// By this point we should have a pdf and postcode
478481
// If we don't, it probably means we jumped into the middle of the flow
479482
if (!pdf || !postcode) {
483+
// eslint-disable-next-line no-console
480484
console.error('User appears to have started mid-flow... redirecting to earlier in flow');
481485
navigate('/postal-vote-form/your-details');
482486
}

0 commit comments

Comments
 (0)