@vechain/vechain-kit 1.5.3 → 1.5.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.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3622,8 +3622,8 @@ var useBalances = ({ address = "" }) => {
|
|
|
3622
3622
|
{ address: contractAddresses.vtho, price: vthoUsdPrice || 0 },
|
|
3623
3623
|
{ address: contractAddresses.b3tr, price: b3trUsdPrice || 0 }
|
|
3624
3624
|
];
|
|
3625
|
-
const totalBalance = balances.reduce((acc, {
|
|
3626
|
-
const price = prices.find((p) => p.address ===
|
|
3625
|
+
const totalBalance = balances.reduce((acc, { priceAddress, value }) => {
|
|
3626
|
+
const price = prices.find((p) => p.address === priceAddress)?.price || 0;
|
|
3627
3627
|
return acc + Number(value) * price;
|
|
3628
3628
|
}, 0);
|
|
3629
3629
|
const tokens = balances.reduce(
|
|
@@ -4978,7 +4978,7 @@ var AddressDisplay = ({
|
|
|
4978
4978
|
// package.json
|
|
4979
4979
|
var package_default = {
|
|
4980
4980
|
name: "@vechain/vechain-kit",
|
|
4981
|
-
version: "1.5.
|
|
4981
|
+
version: "1.5.4",
|
|
4982
4982
|
private: false,
|
|
4983
4983
|
homepage: "https://github.com/vechain/vechain-kit",
|
|
4984
4984
|
repository: "github:vechain/vechain-kit",
|