From af5baf077543efb790a4f8ac8919f40280c939c6 Mon Sep 17 00:00:00 2001 From: Pierre-Louis Guhur Date: Thu, 19 Jan 2023 11:38:07 +0100 Subject: [PATCH] fix: clean up console log --- pages/results/[pid]/[[...tid]].tsx | 1 - services/api.ts | 1 - 2 files changed, 2 deletions(-) diff --git a/pages/results/[pid]/[[...tid]].tsx b/pages/results/[pid]/[[...tid]].tsx index e766da2..9d9c7c8 100644 --- a/pages/results/[pid]/[[...tid]].tsx +++ b/pages/results/[pid]/[[...tid]].tsx @@ -497,7 +497,6 @@ const ResultPage = ({ ); } - console.log(err) if (err && err.details.startsWith('The election is not closed')) { const urlVote = getUrl(RouteTypes.VOTE, router, electionRef, token); diff --git a/services/api.ts b/services/api.ts index 8ebfc8f..ba9e011 100644 --- a/services/api.ts +++ b/services/api.ts @@ -212,7 +212,6 @@ export const getResults = async ( const response = await fetch(endpoint.href); if (response.status != 200) { const payload = await response.json(); - console.log("PAYLOAD", payload) return {status: response.status, ...payload}; } const payload = await response.json();