diff --git a/pages/admin.tsx b/pages/admin.tsx index d2a871dad..003009b47 100644 --- a/pages/admin.tsx +++ b/pages/admin.tsx @@ -15,7 +15,10 @@ const AdminPage = () => { switchAccountId: "", discordId: "", }); - const endVoting = trpc.useMutation("plus.endVoting"); + const endVoting = trpc.useMutation("plus.endVoting", { + onSuccess: () => console.log("success"), + onError: (e) => console.error(e.message), + }); const handleEndVoting = () => { if (!window.confirm("End voting?")) return;