From 2a9a48974da0dfd8932312e006b98e800fa13377 Mon Sep 17 00:00:00 2001 From: Hazem Krimi Date: Sat, 1 May 2021 17:52:48 +0100 Subject: [PATCH] Update apollo config --- src/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.tsx b/src/index.tsx index a465a02..6bc5850 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -12,7 +12,7 @@ const client = new ApolloClient({ uri: process.env.REACT_APP_GRAPHQL_API, cache: new InMemoryCache(), headers: { - authorization: localStorage.getItem('token') || '', + authorization: localStorage.getItem('token')!, }, });