@coorpacademy/app-review 0.8.3 → 0.8.5-alpha.0

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.
@@ -5,6 +5,10 @@ export const fetchSkill = async (skillRef, token) => {
5
5
  const { host } = decode(token);
6
6
  const response = await crossFetch(`${host}/api/v2/skills?conditions={"ref":"${skillRef}"}`, {
7
7
  headers: { authorization: token }
8
+ }).then(result => {
9
+ // eslint-disable-next-line no-console
10
+ console.log(typeof result);
11
+ return result;
8
12
  });
9
13
  return toJSON(response);
10
14
  };
@@ -319,10 +319,11 @@ export const mapStateToSlidesProps = (state, dispatch, options) => {
319
319
  const klf = getOr('', ['data', 'slides', currentSlideRef, 'klf'], state);
320
320
  const showQuitPopin = get(['ui', 'showQuitPopin'], state);
321
321
  const showCongrats = get(['ui', 'showCongrats'], state);
322
+ const skillName = getOr('', ['data', 'currentSkill', 'name'], state);
322
323
  return {
323
324
  header: {
324
325
  mode: translate('Review Title'),
325
- skillName: '__agility',
326
+ skillName,
326
327
  onQuitClick: () => dispatch(openQuitPopin),
327
328
  'aria-label': 'aria-header-wrapper',
328
329
  closeButtonAriaLabel: 'aria-close-button',
@@ -11,6 +11,10 @@ const fetchSkill = async (skillRef, token) => {
11
11
  const { host } = (0, jwt_decode_1.default)(token);
12
12
  const response = await (0, cross_fetch_1.default)(`${host}/api/v2/skills?conditions={"ref":"${skillRef}"}`, {
13
13
  headers: { authorization: token }
14
+ }).then(result => {
15
+ // eslint-disable-next-line no-console
16
+ console.log(typeof result);
17
+ return result;
14
18
  });
15
19
  return (0, fetch_responses_1.toJSON)(response);
16
20
  };
@@ -326,10 +326,11 @@ const mapStateToSlidesProps = (state, dispatch, options) => {
326
326
  const klf = (0, getOr_1.default)('', ['data', 'slides', currentSlideRef, 'klf'], state);
327
327
  const showQuitPopin = (0, get_1.default)(['ui', 'showQuitPopin'], state);
328
328
  const showCongrats = (0, get_1.default)(['ui', 'showCongrats'], state);
329
+ const skillName = (0, getOr_1.default)('', ['data', 'currentSkill', 'name'], state);
329
330
  return {
330
331
  header: {
331
332
  mode: translate('Review Title'),
332
- skillName: '__agility',
333
+ skillName,
333
334
  onQuitClick: () => dispatch(quit_popin_1.openQuitPopin),
334
335
  'aria-label': 'aria-header-wrapper',
335
336
  closeButtonAriaLabel: 'aria-close-button',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coorpacademy/app-review",
3
- "version": "0.8.3",
3
+ "version": "0.8.5-alpha.0+26883a2e1",
4
4
  "description": "",
5
5
  "engines": {
6
6
  "node": ">=16.15.0"
@@ -37,7 +37,7 @@
37
37
  "dependencies": {
38
38
  "@coorpacademy/components": "10.28.3",
39
39
  "@coorpacademy/redux-task": "1.1.6",
40
- "@coorpacademy/translate": "^6.1.5",
40
+ "@coorpacademy/translate": "6.1.5",
41
41
  "cross-fetch": "^3.1.5",
42
42
  "jwt-decode": "^3.1.2",
43
43
  "react-redux": "^7.2.9",
@@ -71,5 +71,5 @@
71
71
  "webpack-cli": "^4.10.0",
72
72
  "webpack-dev-server": "^4.11.1"
73
73
  },
74
- "gitHead": "36016112a069033a8ff63c951e496a9035377b3f"
74
+ "gitHead": "26883a2e1d7f96e158602e69dada81f929cf0489"
75
75
  }