Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
Fix silenced toast error message
Luke Vella35159bf3a1ca
diff --git a/src/pages/_app.tsx b/src/pages/_app.tsxindex e8c0611d1..9e61b7a0e 100644--- a/src/pages/_app.tsx+++ b/src/pages/_app.tsx@@ -3,7 +3,6 @@ import "tailwindcss/tailwind.css";import "~/style.css";import { withTRPC } from "@trpc/next";-import axios from "axios";import { NextPage } from "next";import { AppProps } from "next/app";import dynamic from "next/dynamic";@@ -63,12 +62,10 @@ export default withTRPC<AppRouter>({*/queryClientConfig: {mutationCache: new MutationCache({- onError: (error) => {- if (axios.isAxiosError(error) && error.response?.status === 500) {- 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.",- );- }+ onError: () => {+ 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.",+ );},}),},