coinley-test 0.0.40 → 0.0.41

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.esm.js CHANGED
@@ -2923,11 +2923,12 @@ const EnhancedSimpleCoinleyPayment = ({
2923
2923
  };
2924
2924
  const renderNetworkOption = (network) => {
2925
2925
  var _a2, _b2;
2926
+ const networkLogoUrl = NetworkLogos[network.shortName];
2926
2927
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center space-x-3", children: [
2927
- NetworkLogos[network.shortName] ? /* @__PURE__ */ jsxRuntimeExports.jsx(
2928
+ networkLogoUrl ? /* @__PURE__ */ jsxRuntimeExports.jsx(
2928
2929
  "img",
2929
2930
  {
2930
- src: NetworkLogos[network.shortName],
2931
+ src: networkLogoUrl,
2931
2932
  alt: network.name,
2932
2933
  className: "w-8 h-8 rounded-full",
2933
2934
  onError: (e) => {
@@ -2940,7 +2941,7 @@ const EnhancedSimpleCoinleyPayment = ({
2940
2941
  "div",
2941
2942
  {
2942
2943
  className: "w-8 h-8 rounded-full bg-gray-200 flex items-center justify-center",
2943
- style: { display: NetworkLogos[network.shortName] ? "none" : "flex" },
2944
+ style: { display: networkLogoUrl ? "none" : "flex" },
2944
2945
  children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-xs font-bold text-gray-600", children: (_a2 = network.shortName) == null ? void 0 : _a2.slice(0, 2).toUpperCase() })
2945
2946
  }
2946
2947
  ),