@merit-systems/echo-react-sdk 1.0.2 → 1.0.4

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
@@ -7831,7 +7831,7 @@ function EchoTokenPurchase({
7831
7831
  };
7832
7832
  const calculateAvailableSpend = () => {
7833
7833
  var _a2;
7834
- return ((_a2 = freeTierBalance == null ? void 0 : freeTierBalance.userSpendInfo) == null ? void 0 : _a2.amountLeft) || 0;
7834
+ return (((_a2 = freeTierBalance == null ? void 0 : freeTierBalance.userSpendInfo) == null ? void 0 : _a2.amountLeft) || 0) + ((balance == null ? void 0 : balance.balance) || 0);
7835
7835
  };
7836
7836
  const handlePurchase = async (purchaseAmount) => {
7837
7837
  if (!isAuthenticated) {
@@ -7927,7 +7927,7 @@ function EchoTokenPurchase({
7927
7927
  onMouseLeave: () => setIsHovered(false),
7928
7928
  children: [
7929
7929
  /* @__PURE__ */ jsx(Logo, { width: 16, height: 16, variant: "light" }),
7930
- /* @__PURE__ */ jsx("span", { children: freeTierBalance && calculateAvailableSpend() > 0 ? formatCurrency(calculateAvailableSpend()) + " Free" : balance ? formatCurrency(balance.balance) : "Purchase Tokens" }),
7930
+ /* @__PURE__ */ jsx("span", { children: formatCurrency(calculateAvailableSpend()) }),
7931
7931
  /* @__PURE__ */ jsxs(
7932
7932
  "svg",
7933
7933
  {