@eluvio/elv-client-js 3.2.1 → 3.2.2

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": "@eluvio/elv-client-js",
3
- "version": "3.2.1",
3
+ "version": "3.2.2",
4
4
  "description": "Javascript client for the Eluvio Content Fabric",
5
5
  "main": "src/index.js",
6
6
  "author": "Kevin Talmadge",
@@ -78,9 +78,9 @@ exports.UserWalletBalance = async function(checkOnboard=false) {
78
78
  const userStripeId = stripe_id;
79
79
  const userStripeEnabled = stripe_payouts_enabled;
80
80
  const totalWalletBalance = parseFloat(balance || 0);
81
- const availableWalletBalance = Math.max(0, this.totalWalletBalance - parseFloat(usage_hold || 0));
82
- const pendingWalletBalance = Math.max(0, this.totalWalletBalance - this.availableWalletBalance);
83
- const withdrawableWalletBalance = Math.max(0, this.totalWalletBalance - parseFloat(payout_hold || 0));
81
+ const availableWalletBalance = Math.max(0, totalWalletBalance - parseFloat(usage_hold || 0));
82
+ const pendingWalletBalance = Math.max(0, totalWalletBalance - availableWalletBalance);
83
+ const withdrawableWalletBalance = Math.max(0, totalWalletBalance - parseFloat(payout_hold || 0));
84
84
 
85
85
  if(checkOnboard && stripe_id && !stripe_payouts_enabled) {
86
86
  // Refresh stripe enabled flag