Skip to content

Commit

Permalink
chore: clean errorLink
Browse files Browse the repository at this point in the history
  • Loading branch information
flagrede committed Oct 30, 2023
1 parent c79f821 commit abe20ca
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions web-marketplace/src/apollo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export const AuthApolloProvider = ({
const errorLink = onError(({ operation, networkError, forward }) => {
if (
networkError &&
networkError.message.includes('403') &&
networkError.message.includes('status code 403') &&
operation.operationName !== 'GetCurrentAccount'
) {
const observable = new Observable<FetchResult<Record<string, any>>>(
Expand All @@ -93,7 +93,6 @@ export const AuthApolloProvider = ({

forward(operation).subscribe(subscriber);
} catch (err) {
localStorage.setItem('regen-csrf', '');
observer.error(err);
}
})();
Expand Down

0 comments on commit abe20ca

Please sign in to comment.