@bytebrand/fe-ui-core 4.1.166 → 4.1.168

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.166",
3
+ "version": "4.1.168",
4
4
  "description": "UI components for the auto.de project",
5
5
  "main": "index.ts",
6
6
  "module": "dist/common.js",
@@ -70,7 +70,7 @@ const MaterialField: React.FC<IVehicleModalProps> = ({
70
70
  value={value}
71
71
  name={name}
72
72
  sx={sx}
73
- error={error.toString()}
73
+ error={error}
74
74
  type={type === 'password' ? passType : type}
75
75
  disabled={disabled}
76
76
  required={required}
@@ -141,7 +141,7 @@ const MaterialSelect: React.FC<IVehicleModalProps> = ({
141
141
  <ThemeProvider theme={Theme}>
142
142
  <FormControl
143
143
  className={className}
144
- error={error.toString()}
144
+ error={error}
145
145
  disabled={disabled}
146
146
  required={required}
147
147
  size={size}
@@ -44,7 +44,7 @@ class FormTextField extends React.Component<IFormTextFieldProps, {}> {
44
44
 
45
45
  return (
46
46
  <div className={classnames(styles.field, className)}>
47
- <TextField error={(hasError && error).toString()} {...props} type={type || field.type} />
47
+ <TextField error={hasError && error} {...props} type={type || field.type} />
48
48
  {hasError && error ? (<span className={errorClassName}>{error}</span>) : false}
49
49
  </div>
50
50
  );
@@ -554,5 +554,5 @@ export const updateCookieList = () => {
554
554
  // grant FB cookies
555
555
  if (isFBGranted) window.fbq('consent', 'grant');
556
556
  // grant Hotjar cookies
557
- if (isHotjarGranted) window.grantHotjarCookieConsent();
557
+ if (isHotjarGranted && typeof window.grantHotjarCookieConsent() === 'function') window.grantHotjarCookieConsent();
558
558
  };