🔥 Remove unused toast code (#1162)

This commit is contained in:
Luke Vella 2024-06-18 19:24:29 +01:00 committed by GitHub
parent b79f6720f2
commit 585475f1f2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 0 additions and 17 deletions

View file

@ -1,7 +1,6 @@
import * as Sentry from "@sentry/browser";
import { MutationCache } from "@tanstack/react-query";
import { httpBatchLink } from "@trpc/client";
import toast from "react-hot-toast";
import superjson from "superjson";
export const trpcConfig = {
@ -21,9 +20,6 @@ export const trpcConfig = {
},
mutationCache: new MutationCache({
onError: (error) => {
toast.error(
"Uh oh! Something went wrong. The issue has been logged and we'll fix it as soon as possible. Please try again later.",
);
Sentry.captureException(error);
},
}),