diff --git a/components/pages/inspector/UserActions.tsx b/components/pages/inspector/UserActions.tsx index 22a8e3e..8d0fb63 100644 --- a/components/pages/inspector/UserActions.tsx +++ b/components/pages/inspector/UserActions.tsx @@ -316,7 +316,10 @@ export function UserActions({ user, bot }: { user: User; bot?: Bot }) { if (!alertMessage.current) return; sendAlert(user._id, alertMessage.current) - .then(() => toast({ title: "Sent Alert" })) + .then(() => { + toast({ title: "Sent Alert" }); + alertMessage.current = ""; + }) .catch((err) => toast({ title: "Failed to send alert!",