From f93c63581093d366dca2397c847b54ea2b8e6a53 Mon Sep 17 00:00:00 2001 From: Fernando Date: Tue, 4 Jan 2022 11:46:57 +0100 Subject: [PATCH] #16-fix: Delete some non necessary code --- .../frontend/src/api/votingApiUtils.ts | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/decide/administration/frontend/src/api/votingApiUtils.ts b/decide/administration/frontend/src/api/votingApiUtils.ts index 2830343503..bde6361ede 100644 --- a/decide/administration/frontend/src/api/votingApiUtils.ts +++ b/decide/administration/frontend/src/api/votingApiUtils.ts @@ -24,30 +24,27 @@ const votingApi = { deleteAllVotings: () => axios.delete(`/votings`), startVotings:( - idList:number[], - actionV: "start", + idList:number[] ) => axios.put("/votings", { idList: idList, - action: actionV, + action: "start", }), stopVotings:( - idList:number[], - actionV: "stop", + idList:number[] ) => axios.put("/votings", { idList: idList, - action: actionV, + action: "stop", }), tallyVotings:( - idList:number[], - actionV: "tally", + idList:number[] ) => axios.put("/votings", { idList: idList, - action: actionV, + action: "tally", }), //Individual Operations