@tixyel/streamelements 3.7.0 → 3.7.1

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.es.js CHANGED
@@ -5361,7 +5361,7 @@ var T;
5361
5361
  const w = c?.username || c?.name || c?.nick || c?.nickname || c?.sender;
5362
5362
  c.username = c.username || w, c.usernameAt = `@${c.username}`, c.name = c.name || w, c.nick = c.nick || w, c.nickname = c.nickname || w, c.sender = c.sender || w, c.senderAt = `@${c.sender}`;
5363
5363
  }
5364
- return ["amount", "count"].some((w) => l === w) && (c.amount = String(h), c.count = String(c?.count || h)), c.currency = c.currency || window.client?.details.currency.symbol || "$", c.currencyCode = c.currencyCode || window.client?.details.currency.code || "USD", c;
5364
+ return ["amount", "count"].some((w) => l === w) && (c.amount = String(c?.amount || c.count || b), c.count = String(c?.count || c?.amount || b)), c.currency = c.currency || window.client?.details.currency.symbol || "$", c.currencyCode = c.currencyCode || window.client?.details.currency.code || "USD", c;
5365
5365
  },
5366
5366
  {}
5367
5367
  ), u = {