1
0
Fork 0

fix: actually send alert message content

fix-1
Lea 2023-08-06 00:28:29 +02:00
parent 772bc75e34
commit a3f615e61f
Signed by: lea
GPG Key ID: 1BAFFE8347019C42
1 changed files with 0 additions and 1 deletions

View File

@ -277,7 +277,6 @@ export function UserActions({ user, bot }: { user: User; bot?: Bot }) {
<AlertDialogAction <AlertDialogAction
onClick={() => { onClick={() => {
if (!alertMessage.current) return; if (!alertMessage.current) return;
alertMessage.current = "";
sendAlert(user._id, alertMessage.current) sendAlert(user._id, alertMessage.current)
.then(() => toast({ title: "Sent Alert" })) .then(() => toast({ title: "Sent Alert" }))