🐛 fix: fix noisy error notification (#10286)

fix error notifcation
This commit is contained in:
Arvin Xu
2025-11-19 00:38:11 +08:00
committed by GitHub
parent 457e7c130d
commit 9ea680c96d

View File

@@ -52,8 +52,10 @@ const errorHandlingLink: TRPCLink<LambdaRouter> = () => {
}
default: {
if (fetchErrorNotification)
console.error(err);
if (fetchErrorNotification && status) {
fetchErrorNotification.error({ errorMessage: err.message, status });
}
}
}
}