forked from administration/panel
fix: send correct content when sending alert
parent
2cf61f26a0
commit
19465043a1
|
@ -303,7 +303,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" }))
|
||||||
|
|
Loading…
Reference in New Issue