@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.
@@ -5503,6 +5503,11 @@ const Logo = ({
5503
5503
  });
5504
5504
  const isSmall = clientWidth < Breakpoint.SMALL;
5505
5505
  const LogoSvg = isSmall ? svgPaths[`WISE_FLAG${inverse ? '_INVERSE' : ''}`] : svgPaths[`${type}${inverse ? '_INVERSE' : ''}`];
5506
+
5507
+ // If clientWidth is not defined, don't render anything
5508
+ if (clientWidth === null) {
5509
+ return null;
5510
+ }
5506
5511
  return /*#__PURE__*/jsx(LogoSvg, {
5507
5512
  className: classNames('np-logo-svg', className),
5508
5513
  alt: type === LogoType.WISE ? 'Wise' : 'Wise business'