From a04dc682695c3161240a85fb93ed87bf0f0dbdc3 Mon Sep 17 00:00:00 2001 From: Pierre-Louis Guhur Date: Sun, 6 Nov 2022 17:37:06 +0100 Subject: [PATCH] fix: linting typescript --- pages/admin/confirm/[pid].tsx | 2 +- pages/result/[pid]/[[...tid]].tsx | 2 +- pages/vote/[pid]/[[...tid]].tsx | 2 +- pages/vote/[pid]/confirm.tsx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/admin/confirm/[pid].tsx b/pages/admin/confirm/[pid].tsx index 4d2e618..e2f4841 100644 --- a/pages/admin/confirm/[pid].tsx +++ b/pages/admin/confirm/[pid].tsx @@ -63,7 +63,7 @@ const ConfirmElection = ({ const { t } = useTranslation(); if (err) { - return ; + return ; } const origin = diff --git a/pages/result/[pid]/[[...tid]].tsx b/pages/result/[pid]/[[...tid]].tsx index d44b8d7..2dd6fad 100644 --- a/pages/result/[pid]/[[...tid]].tsx +++ b/pages/result/[pid]/[[...tid]].tsx @@ -66,7 +66,7 @@ const Result = ({ candidates, numGrades, title, pid, err, finish }) => { const newstart = new Date(finish * 1000).toLocaleDateString('fr-FR'); if (err && err !== '') { - return ; + return ; } const router = useRouter(); diff --git a/pages/vote/[pid]/[[...tid]].tsx b/pages/vote/[pid]/[[...tid]].tsx index 44f524a..6b40e30 100644 --- a/pages/vote/[pid]/[[...tid]].tsx +++ b/pages/vote/[pid]/[[...tid]].tsx @@ -68,7 +68,7 @@ const VoteBallot = ({ candidates, title, numGrades, pid, err, token }) => { const { t } = useTranslation(); if (err) { - return ; + return ; } const [judgments, setJudgments] = useState([]); diff --git a/pages/vote/[pid]/confirm.tsx b/pages/vote/[pid]/confirm.tsx index d8eb7d1..852227f 100644 --- a/pages/vote/[pid]/confirm.tsx +++ b/pages/vote/[pid]/confirm.tsx @@ -42,7 +42,7 @@ export async function getServerSideProps({ query: { pid }, locale }) { const VoteSuccess = ({ title, invitationOnly, pid, err }) => { const { t } = useTranslation(); if (err && err !== '') { - return ; + return ; } return (