@transferwise/components 45.21.0 → 45.21.1

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.
@@ -1 +1 @@
1
- {"version":3,"file":"Logo.d.ts","sourceRoot":"","sources":["../../../src/logo/Logo.js"],"names":[],"mappings":";AAsBA;;;;gCAaC"}
1
+ {"version":3,"file":"Logo.d.ts","sourceRoot":"","sources":["../../../src/logo/Logo.js"],"names":[],"mappings":";AAsBA;;;;uCAkBC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transferwise/components",
3
- "version": "45.21.0",
3
+ "version": "45.21.1",
4
4
  "description": "Neptune React components",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
package/src/logo/Logo.js CHANGED
@@ -27,6 +27,11 @@ const Logo = ({ className, inverse, type }) => {
27
27
  ? svgPaths[`WISE_FLAG${inverse ? '_INVERSE' : ''}`]
28
28
  : svgPaths[`${type}${inverse ? '_INVERSE' : ''}`];
29
29
 
30
+ // If clientWidth is not defined, don't render anything
31
+ if (clientWidth === null) {
32
+ return null;
33
+ }
34
+
30
35
  return (
31
36
  <LogoSvg
32
37
  className={classNames('np-logo-svg', className)}