@codecademy/brand 3.26.0 → 3.27.0-alpha.745751754b.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.
- package/dist/AppHeader/index.js +4 -1
- package/package.json +1 -1
package/dist/AppHeader/index.js
CHANGED
|
@@ -48,7 +48,10 @@ export const AppHeader = ({
|
|
|
48
48
|
// logging error to help with debugging
|
|
49
49
|
if (items && items.some(item => !item)) {
|
|
50
50
|
try {
|
|
51
|
-
const itemTypesString = items.map(item =>
|
|
51
|
+
const itemTypesString = items.map(item => {
|
|
52
|
+
if (!item) return '**UNDEFINED ITEM**';
|
|
53
|
+
return item.type;
|
|
54
|
+
}).join(', ');
|
|
52
55
|
logError?.(`Error: Found an undefined app header item on the ${side} side of the header.`, {
|
|
53
56
|
message: `The current array of items includes the following header item types: ${itemTypesString}`
|
|
54
57
|
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codecademy/brand",
|
|
3
3
|
"description": "Brand component library for Codecademy",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.27.0-alpha.745751754b.0",
|
|
5
5
|
"author": "Codecademy Engineering <dev@codecademy.com>",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@emotion/is-prop-valid": "^1.2.1",
|