Skip to content

Commit

Permalink
Merge branch 'main' into fix/create-appointment-input-on-safari
Browse files Browse the repository at this point in the history
  • Loading branch information
LomyW authored Aug 10, 2023
2 parents 4d00dcf + fbccaa2 commit 128315c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useApollo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ class RetryOnUnauthorizedLink extends ApolloLink {
nextChain.subscribe(
(it) => {
if (it.errors?.length) {
const isAuthError = it.errors!.some((it) => it.extensions.code === 'UNAUTHENTICATED');
const isAuthError = it.errors!.some((it) => it.extensions?.code === 'UNAUTHENTICATED');
if (isAuthError) {
if (!getDeviceToken()) {
log('GraphQL AuthRetry', 'authentication failure, no device token present');
Expand Down

0 comments on commit 128315c

Please sign in to comment.