fix: route the AI usage and lab merge error toasts through the error-id helper

This commit is contained in:
Marc-André Bombeck committed 2026-10-15 23:16:52 +02:00
1 parent fd44a8381b
commit 326619069b
2 files changed
+6 -3

No files matched your search

@@ -13,7 +13,7 @@
*/
import { useMemo, useState } from "react";
import { useMutation, useQueryClient } from "@tanstack/react-query";
import { toast } from "sonner";
import { showErrorToast } from "@/lib/errors/error-toast";
import { Loader2 } from "lucide-react";
import { toastWrittenOutcome } from "@/components/outcome/outcome-toast";
@@ -83,7 +83,7 @@ export function BiomarkerMergeSheet({
reset();
onOpenChange(false);
},
onError: () => toast.error(t("labs.merge.error")),
onError: (err) => showErrorToast(t("labs.merge.error"), { cause: err }),
});
const toggle = (id: string, checked: boolean) => {