Commit 59aa5a4d authored by Yuri Yakovlev's avatar Yuri Yakovlev Committed by Tim Neutkens

Return empty string instead of null in the Authorization (#4389)

I was unable to make right check of `authorization` in the header on GraphQL side because now it returns `null` as string instead of empty string
parent 254b4b76
...@@ -21,7 +21,7 @@ function create (initialState, { getToken }) { ...@@ -21,7 +21,7 @@ function create (initialState, { getToken }) {
return { return {
headers: { headers: {
...headers, ...headers,
authorization: token ? `Bearer ${token}` : null authorization: token ? `Bearer ${token}` : ''
} }
} }
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment