@bytebrand/fe-ui-core 4.1.168 → 4.1.170

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytebrand/fe-ui-core",
3
- "version": "4.1.168",
3
+ "version": "4.1.170",
4
4
  "description": "UI components for the auto.de project",
5
5
  "main": "index.ts",
6
6
  "module": "dist/common.js",
@@ -205,7 +205,7 @@ const MaterialAutocomplete: React.FC<IMaterialAutocompleteProps> = ({
205
205
  {...params}
206
206
  type={type}
207
207
  className={selectClassName}
208
- error={error.toString()}
208
+ error={error}
209
209
  disabled={disabled}
210
210
  required={required}
211
211
  size={size}
@@ -550,9 +550,9 @@ export const updateCookieList = () => {
550
550
  });
551
551
  });
552
552
  // grant google cookies
553
- window.grantCookieConsent(cookieConsentList);
553
+ if (typeof window.grantCookieConsent === 'function') window.grantCookieConsent(cookieConsentList);
554
554
  // grant FB cookies
555
- if (isFBGranted) window.fbq('consent', 'grant');
555
+ if (isFBGranted && typeof window.fbq === 'function') window.fbq('consent', 'grant');
556
556
  // grant Hotjar cookies
557
- if (isHotjarGranted && typeof window.grantHotjarCookieConsent() === 'function') window.grantHotjarCookieConsent();
557
+ if (isHotjarGranted && typeof window.grantHotjarCookieConsent === 'function') window.grantHotjarCookieConsent();
558
558
  };