@financial-times/qanda-ui 0.0.1-beta.46 → 0.0.1-beta.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,7 +8,9 @@ exports.default = async ({ useStaging = true, displayName = '', commentsAPIUrl =
8
8
  useStagingEnvironment: useStaging,
9
9
  onlySubscribers: true,
10
10
  displayName,
11
- commentsAPIUrl: commentsAPIUrl === PROD_AUTH_URL ? PROD_AUTH_URL : TEST_AUTH_URL,
11
+ commentsAPIUrl: commentsAPIUrl.startsWith(PROD_AUTH_URL)
12
+ ? PROD_AUTH_URL
13
+ : TEST_AUTH_URL,
12
14
  });
13
15
  // if the JWT creation has failed, a `userHasValidSession` value will be returned
14
16
  // our application assumes the values of a JWT are saved to state, so we set the
@@ -6,7 +6,9 @@ export default async ({ useStaging = true, displayName = '', commentsAPIUrl = PR
6
6
  useStagingEnvironment: useStaging,
7
7
  onlySubscribers: true,
8
8
  displayName,
9
- commentsAPIUrl: commentsAPIUrl === PROD_AUTH_URL ? PROD_AUTH_URL : TEST_AUTH_URL,
9
+ commentsAPIUrl: commentsAPIUrl.startsWith(PROD_AUTH_URL)
10
+ ? PROD_AUTH_URL
11
+ : TEST_AUTH_URL,
10
12
  });
11
13
  // if the JWT creation has failed, a `userHasValidSession` value will be returned
12
14
  // our application assumes the values of a JWT are saved to state, so we set the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@financial-times/qanda-ui",
3
- "version": "0.0.1-beta.46",
3
+ "version": "0.0.1-beta.47",
4
4
  "description": "Components for the Live Q&A (AKA Ask an Expert) UI",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",