@asdp/ferryui 0.1.22-dev.8698 → 0.1.22-dev.8732

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/dist/index.js CHANGED
@@ -519,9 +519,13 @@ var CardPromo = ({
519
519
  "img",
520
520
  {
521
521
  className: classes.image,
522
- src: imageUrl,
522
+ src: imageUrl ?? "/",
523
523
  role: "presentation",
524
- alt: displayImageAlt
524
+ alt: displayImageAlt,
525
+ onError: (e) => {
526
+ e.currentTarget.src = "/assets/images/helper/error.svg";
527
+ e.currentTarget.style.objectFit = "fill";
528
+ }
525
529
  }
526
530
  ) }),
527
531
  !imageOnly && /* @__PURE__ */ jsxRuntime.jsxs(reactGridSystem.Row, { className: classes.infoWrapper, children: [