Ignore 402 errors in sentry

This commit is contained in:
Ramon Wenger 2023-05-08 15:23:56 +02:00
parent f3c3512140
commit e2842a3bbc
1 changed files with 3 additions and 0 deletions

View File

@ -43,6 +43,9 @@ export default function(uri, networkErrorCallback) {
const errorLink = onError(({ networkError, graphQLErrors }) => {
if (networkError && networkErrorCallback) {
networkErrorCallback(networkError.statusCode);
if (networkError.statusCode == 402) { // not authenticated, we don't need to continue here
return;
}
}
if (graphQLErrors) {