mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-30 23:27:55 -05:00
Add logging to admin page end voting mutation
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user