@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.
package/build/index.js CHANGED
@@ -5537,6 +5537,11 @@ const Logo = ({
5537
5537
  });
5538
5538
  const isSmall = clientWidth < exports.Breakpoint.SMALL;
5539
5539
  const LogoSvg = isSmall ? svgPaths[`WISE_FLAG${inverse ? '_INVERSE' : ''}`] : svgPaths[`${type}${inverse ? '_INVERSE' : ''}`];
5540
+
5541
+ // If clientWidth is not defined, don't render anything
5542
+ if (clientWidth === null) {
5543
+ return null;
5544
+ }
5540
5545
  return /*#__PURE__*/jsxRuntime.jsx(LogoSvg, {
5541
5546
  className: classNames__default.default('np-logo-svg', className),
5542
5547
  alt: type === exports.LogoType.WISE ? 'Wise' : 'Wise business'