continued the kita-planer
This commit is contained in:
@@ -9,10 +9,8 @@ import { triggerAlertAction } from "./actions";
|
||||
|
||||
export function AlertButton({
|
||||
assignmentId,
|
||||
parentUserId,
|
||||
}: {
|
||||
assignmentId: string;
|
||||
parentUserId: string;
|
||||
}) {
|
||||
const [isPending, startTransition] = useTransition();
|
||||
|
||||
@@ -20,7 +18,7 @@ export function AlertButton({
|
||||
if (!confirm("Bist du sicher? Dies löst den Notdienst-Alarm aus.")) return;
|
||||
|
||||
startTransition(async () => {
|
||||
const result = await triggerAlertAction(assignmentId, parentUserId);
|
||||
const result = await triggerAlertAction(assignmentId);
|
||||
if ("error" in result && result.error) {
|
||||
toast.error(result.error);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user